Пример #1
0
        public void AnotherUnflatTest()
        {
            var flat = new FlatBoo { Boo1Id = 5 };
            var boo = new Boo();

            boo.InjectFrom<UnflatLoopInjection>(flat);

            boo.Boo1Id.IsEqualTo(5);
            boo.Boo1.IsEqualTo(null);
        }
Пример #2
0
        public void AnotherUnflatTest()
        {
            var flat = new FlatBoo {
                Boo1Id = 5
            };
            var boo = new Boo();

            boo.InjectFrom <UnflatLoopInjection>(flat);

            boo.Boo1Id.IsEqualTo(5);
            boo.Boo1.IsEqualTo(null);
        }