public collection_resolver_tests()
 {
     var factory = new TestConfigurationFactory();
     var cfg = new DestinationConfiguration(typeof (IntegerDest));
     cfg.From(typeof (IntegerSource));
     integerComponentElementConfig = factory.CreateBindableConfiguration(cfg.TakeSnapshot());
     contextualizer = new TestContextualizer();
 }
Example #2
0
        public collection_resolver_tests()
        {
            var factory = new TestConfigurationFactory();
            var cfg     = new DestinationConfiguration(typeof(IntegerDest));

            cfg.From(typeof(IntegerSource));
            integerComponentElementConfig = factory.CreateBindableConfiguration(cfg.TakeSnapshot());
            contextualizer = new TestContextualizer();
        }
Example #3
0
 public mapping_configuration_tests()
 {
     configFactory  = new TestConfigurationFactory();
     contextualizer = new TestContextualizer();
 }
        private static void ConfigureDitto()
        {
            try
            {

                var container = new DestinationConfigurationContainer(null, new TestConfigurationFactory());

                container.Map<BenchDestinationProps.Int1>().From<BenchSourceProps.Int1>();
                container.Map<BenchDestinationProps.Int2>().From<BenchSourceProps.Int2>();
                container.Map<BenchDestinationProps>().From<BenchSourceProps>();

                var bindable = container.ToBinding();
                bindable.Bind();
                bindable.Assert();
                var contextualizer = new TestContextualizer();
                var cacher = new CacheInitializer(contextualizer);
                bindable.Accept(cacher);
                dittoMapCommand = bindable.CreateCommand(typeof (BenchSourceProps), typeof (BenchDestinationProps));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                throw;
            }
        }
 public complex_model_mapping_tests()
 {
     contextualizer = new TestContextualizer();
     configFactory=new TestConfigurationFactory();
     container = new DestinationConfigurationContainer(null, configFactory);
 }
 public mapping_configuration_tests()
 {
     configFactory=new TestConfigurationFactory();
     contextualizer=new TestContextualizer();
 }
Example #7
0
 public conventional_mapping_tests()
 {
     contextualizer  = new TestContextualizer();
     bindableFactory = new TestConfigurationFactory();
 }
Example #8
0
 public value_resolver_tests()
 {
     contextualizer = new TestContextualizer();
 }
Example #9
0
 public value_resolver_tests()
 {
     contextualizer = new TestContextualizer();
 }
 public complex_model_mapping_tests()
 {
     contextualizer = new TestContextualizer();
     configFactory  = new TestConfigurationFactory();
     container      = new DestinationConfigurationContainer(null, configFactory);
 }
 public conventional_mapping_tests()
 {
     contextualizer = new TestContextualizer();
     bindableFactory = new TestConfigurationFactory();
 }