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;
        }
예제 #2
0
        public void TestSearchByConcreteLicense(SCLicenseSearch license)
        {
            var tracks = tracksSearcher().License(license).Exec();

            Assert.IsTrue(tracks.All(x => x.License.GetParameterName() == license.GetParameterName()));
        }
예제 #3
0
 public void TestSearchByLicense(SCLicenseSearch license)
 {
     TestCollection((o, c) => tracksSearcher().License(license).Exec(SCOrder.CreatedAt, o, c), 0, 50);
 }
예제 #4
0
 public void TestSearchByLicense(SCLicenseSearch license)
 {
     TestCollection((o, c) => tracksSearcher().License(license).Exec(SCOrder.CreatedAt, o, c), 0, 50);
 }
예제 #5
0
 public void TestSearchByConcreteLicense(SCLicenseSearch license)
 {
     var tracks = tracksSearcher().License(license).Exec();
     Assert.IsTrue(tracks.All(x => x.License.GetParameterName() == license.GetParameterName()));
 }