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