Beispiel #1
0
        public void Validate_ShouldSucceed_WhenNonPublicSourcePropertiesAreNotMapped()
        {
            var tms = new TypeMapStore();

            tms.Define<NonPublicMember, Object>();

            try
            {
                tms.Finish();
            }
            catch (TypeMapValidationException)
            {
                Assert.Fail();
            }
        }
Beispiel #2
0
        static void TypeMapper()
        {
            var orderEntity = new OrderEntity();
            var addOrder = CreateNewOrderPoco();
            TypeMapStore tms = new TypeMapStore();

            tms.Define<OrderEntity, OrderPoco>()
                .MapProperty(a => a.OrderId, b => b.MyId)
                .MapProperty(a => a.Status, b => b.Status);
            //.MapRemainingByConvention(PropertyMapUnresolvedBehavior.None);

            tms.Define<LocalDataStoreSlot, Object>();

            tms.Define<TimeZone, Object>();

            tms.Finish();

            tms.Map<OrderPoco, OrderEntity>(addOrder, orderEntity);

            var yo = 34;
            //dataMapBlock.Delete(addFindResult);
        }
Beispiel #3
0
 public void GivenICreateATypeMapStore()
 {
     var s = new TypeMapStore();
     ScenarioContext.Current.Set(s);
 }