C# Class NuGet.Services.Work.Jobs.Models.PackageAssertionSet

This assertion is the full assertion containing all the possible fields and is used during 'Add Package' or 'Edit Package' As with all its base classes, the owners field will be ignored, if the Owners field is null or empty
Inheritance: PackageMinAssertionSet
ファイルを表示 Open project: NuGet/NuGet.Services.Work

Private Properties

Property Type Description
PackageAssertionSet Newtonsoft.Json
PackageAssertionSet Newtonsoft.Json

Public Methods

Method Description
PackageAssertionSet ( ) : Newtonsoft.Json

Adding a parameterless default constructor for supporting Dapper and have internal constructor for writing simple unit tests Could have added a constructor with a signature matching the sql query, but this is less code

Private Methods

Method Description
PackageAssertionSet ( string packageId, string version, bool exists ) : Newtonsoft.Json
PackageAssertionSet ( string packageId, string version, bool exists, object nupkg, bool listed, System.DateTime created, System.DateTime published ) : Newtonsoft.Json

Method Details

PackageAssertionSet() public method

Adding a parameterless default constructor for supporting Dapper and have internal constructor for writing simple unit tests Could have added a constructor with a signature matching the sql query, but this is less code
public PackageAssertionSet ( ) : Newtonsoft.Json
return Newtonsoft.Json