public void TestFillLibraryWithDictionary() { Filler <LibraryConstructorDictionary> lib = new Filler <LibraryConstructorDictionary>(); lib.Setup() .OnType <IBook>().CreateInstanceOf <Book>() .OnProperty(x => x.Books).IgnoreIt(); LibraryConstructorDictionary filledLib = lib.Create(); Assert.NotNull(filledLib.Books); }
public void TestFillLibraryWithDictionaryAndPoco() { Filler <LibraryConstructorDictionary> lib = new Filler <LibraryConstructorDictionary>(); lib.Setup() .OnProperty(x => x.Books).IgnoreIt() .OnProperty(x => x.Name).IgnoreIt(); LibraryConstructorDictionary filledLib = lib.Create(); Assert.NotNull(filledLib.Books); Assert.NotNull(filledLib.Name); }