Beispiel #1
0
 private static void Map_the_property_values(DynamicDestinationContext context)
 {
     var result = new MappingTester<object>().Verify(context.Destination, context.Expected);
     result.IsValid.ShouldBeTrue(result.ToString());
 }
Beispiel #2
0
 private static void NHibernate_dynamic_proxy_as_destination(SimpleMapper obj, DynamicDestinationContext context)
 {
     var source = new ClassFiller<InputClass>().Source;
     context.Source = source;
     context.Expected = new OutputClass
                        {
                            BooleanProperty = source.BooleanProperty,
                            IntegerProperty = source.IntegerProperty,
                            StringProperty = source.StringProperty,
                            DecimalProperty = source.DecimalProperty,
                            DateTimeProperty = source.DateTimeProperty,
                            DateTimeToNullable = source.DateTimeToNullable
                        };
     // ReSharper disable once RedundantCast
     context.Destination = new DynamicOutputClass();
 }
Beispiel #3
0
 private static void Map_is_called(SimpleMapper simpleMapper, DynamicDestinationContext context)
 {
     simpleMapper.Map(context.Source, context.Destination);
 }