public AddComment ( string comment ) : void | ||
comment | string | |
Результат | void |
public void TestStringWithWildCard() { var fb = new FindFilterBuilder(); fb.AddComment("Foo*"); var actual = fb.ToString(); Assert.AreEqual("where comment like 'Foo%'", 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); }