public ITracksSearcher License(SCLicenseSearch? license) { const string key = "license"; if (!license.HasValue) { searchParameters.SafeRemove(key); return this; } searchParameters.AddOrUpdate(key, license.Value.GetParameterName()); return this; }
public void TestSearchByConcreteLicense(SCLicenseSearch license) { var tracks = tracksSearcher().License(license).Exec(); Assert.IsTrue(tracks.All(x => x.License.GetParameterName() == license.GetParameterName())); }
public void TestSearchByLicense(SCLicenseSearch license) { TestCollection((o, c) => tracksSearcher().License(license).Exec(SCOrder.CreatedAt, o, c), 0, 50); }