AddRepositoryString() public method

public AddRepositoryString ( string repository ) : void
repository string
return void
Ejemplo n.º 1
0
 public void TestMultiplePropertiesWithRepositories()
 {
     var fb = new FindFilterBuilder();
     fb.AddChangeset(new[] {2, 5, 7});
     fb.AddDateRange(DateTime.MinValue, new DateTime(2013, 05, 05, 0, 0, 0, DateTimeKind.Utc));
     fb.AddRepositoryString(new[] {"repo1", "repo2"});
     var actual = fb.ToString();
     Assert.AreEqual(
         "where (changeset = 2 or changeset = 5 or changeset = 7) and date <= '2013-05-05T00:00:00.0000000Z' on repositories 'repo1', 'repo2'",
         actual);
 }
Ejemplo n.º 2
0
 public void TestStringWithWildCardWithRepository()
 {
     var fb = new FindFilterBuilder();
     fb.AddComment("Foo*");
     fb.AddRepositoryString(new[] {"someRepo"});
     var actual = fb.ToString();
     Assert.AreEqual("where comment like 'Foo%' on repository 'someRepo'", actual);
 }