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

NOTE THAT this assertion has the 'packageVersion' information in addition to the 'packageId', 'Owners' and 'Exists' information from its base classes This assertion will be directly used for a delete package assertion. If there are owner assertions, they will get added here as well. If not, they will be ignored This assertion does not contain the other information used during 'Add Package' or 'Edit Package' like 'Created Date' and so on
Inheritance: IPackageAssertionSet
ファイルを表示 Open project: NuGet/NuGet.Services.Work

Private Properties

Property Type Description
PackageMinAssertionSet Newtonsoft.Json

Public Methods

Method Description
PackageMinAssertionSet ( ) : 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

ShouldSerializeOwners ( ) : bool

Private Methods

Method Description
PackageMinAssertionSet ( string packageId, string version, bool exists ) : Newtonsoft.Json

Method Details

PackageMinAssertionSet() 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 PackageMinAssertionSet ( ) : Newtonsoft.Json
return Newtonsoft.Json

ShouldSerializeOwners() public method

public ShouldSerializeOwners ( ) : bool
return bool