public void Should_Build_Relation() { var plant = new BasePlant(); plant.DefinePropertiesOf(new House() { Color = "blue", SquareFoot = 50 }); plant.DefinePropertiesOf(new Person() { FirstName = "Leo" }); var person = plant.Build<Person>(); Assert.IsNotNull(person.HouseWhereILive); }
public void Should_Build_Relation() { var plant = new BasePlant(); plant.DefinePropertiesOf(new House { Color = "blue", SquareFoot = 50 }); plant.DefinePropertiesOf(new Person { FirstName = "Leo" }); var person = plant.Build <Person>(); Assert.IsNotNull(person.HouseWhereILive); }