public void ApplierAlwaysField()
 {
     var mapper = new Mock<IPropertyMapper>();
     var pattern = new MemberToFieldAccessorApplier<IPropertyMapper>();
     pattern.Apply(null, mapper.Object);
     mapper.Verify(x => x.Access(It.Is<Accessor>(a => a == Accessor.Field)));
 }
示例#2
0
        public void ApplierAlwaysField()
        {
            var mapper  = new Mock <IPropertyMapper>();
            var pattern = new MemberToFieldAccessorApplier <IPropertyMapper>();

            pattern.Apply(null, mapper.Object);
            mapper.Verify(x => x.Access(It.Is <Accessor>(a => a == Accessor.Field)));
        }