public void ShouldApplyAlterationsToModel()
        {
            var alteration = MockRepository.GenerateMock <IAutoMappingAlteration>();

            model
            .Alterations(alterations => alterations.Add(alteration))
            .CompileMappings();

            alteration.AssertWasCalled(x => x.Alter(model));
        }
Example #2
0
        public void ShouldApplyAlterationsToModel()
        {
            var alteration = A.Fake <IAutoMappingAlteration>();

            model
            .Alterations(alterations => alterations.Add(alteration))
            .BuildMappings();

            A.CallTo(() => alteration.Alter(model)).MustHaveHappened();
        }