This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/NuGet/NuGet.Services.Metadata …
…into dev
- Loading branch information
Showing
10 changed files
with
373 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
tests/BasicSearchTests.FunctionalTests.Core/Models/SearchResultEntry.cs
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
tests/BasicSearchTests.FunctionalTests.Core/Models/V2PackageRegistration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace BasicSearchTests.FunctionalTests.Core.Models | ||
{ | ||
public class V2PackageRegistration | ||
{ | ||
public string Id { get; set; } | ||
|
||
public long DownloadCount { get; set; } | ||
|
||
public IList<string> Owners { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
tests/BasicSearchTests.FunctionalTests.Core/Models/V2SearchResultEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace BasicSearchTests.FunctionalTests.Core.Models | ||
{ | ||
public class V2SearchResultEntry | ||
{ | ||
public V2PackageRegistration PackageRegistration { get; set; } | ||
|
||
[JsonProperty(Required = Required.Always)] | ||
public string Version { get; set; } | ||
|
||
[JsonProperty(Required = Required.Always)] | ||
public string NormalizedVersion { get; set; } | ||
|
||
public string Title { get; set; } | ||
|
||
public string Description { get; set; } | ||
|
||
public string Summary { get; set; } | ||
|
||
public string Authors { get; set; } | ||
|
||
public string Copyright { get; set; } | ||
|
||
public string Language { get; set; } | ||
|
||
public string Tags { get; set; } | ||
|
||
public string ReleaseNotes { get; set; } | ||
|
||
public string ProjectUrl { get; set; } | ||
|
||
public string IconUrl { get; set; } | ||
|
||
public bool IsLatestStable { get; set; } | ||
|
||
public bool IsLatest { get; set; } | ||
|
||
public bool Listed { get; set; } | ||
|
||
public DateTime Created { get; set; } | ||
|
||
public DateTime Published { get; set; } | ||
|
||
public DateTime LastUpdated { get; set; } | ||
|
||
public DateTime? LastEdited { get; set; } | ||
|
||
public long DownloadCount { get; set; } | ||
|
||
public string FlattenedDependencies { get; set; } | ||
|
||
public object[] Dependencies { get; set; } | ||
|
||
public string[] SupportedFrameworks { get; set; } | ||
|
||
public string Hash { get; set; } | ||
|
||
public string HashAlgorithm { get; set; } | ||
|
||
public long PackageFileSize { get; set; } | ||
|
||
public string LicenseUrl { get; set; } | ||
|
||
public bool RequireslicenseAcceptance { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/BasicSearchTests.FunctionalTests.Core/Models/V3SearchResultEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace BasicSearchTests.FunctionalTests.Core.Models | ||
{ | ||
public class V3SearchResultEntry | ||
{ | ||
[JsonProperty("@id")] | ||
public string AtId { get; set; } | ||
|
||
[JsonProperty("@type")] | ||
public string AtType { get; set; } | ||
|
||
public string Registration { get; set; } | ||
|
||
[JsonProperty(Required = Required.Always)] | ||
public string Id { get; set; } | ||
|
||
[JsonProperty(Required = Required.Always)] | ||
public string Version { get; set; } | ||
|
||
public string Description { get; set; } | ||
|
||
public string Summary { get; set; } | ||
|
||
public string Title { get; set; } | ||
|
||
public string IconUrl { get; set; } | ||
|
||
public string LicenseUrl { get; set; } | ||
|
||
public string ProjectUrl { get; set; } | ||
|
||
public string[] Tags { get; set; } | ||
|
||
public string[] Authors { get; set; } | ||
|
||
public long TotalDownloads { get; set; } | ||
|
||
public PackageVersion[] Versions { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.