public AddRepositoryString ( string repository ) : void | ||
repository | string | |
return | void |
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); }
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); }