示例#1
0
        public void Should_Not_Call_Persister_Save_Method_When_Building_Objects()
        {
            _factory.Define(() => new House {
                Color = "blue", SquareFoot = 50
            });
            _factory.Build <House>();

            _persister.AssertWasNotCalled(p => p.Save(Arg <object> .Is.Anything));
        }