Example #1
0
        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);
        }
Example #2
0
        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);
        }