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(); }
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(); }
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(); }
public conventional_mapping_tests() { contextualizer = new TestContextualizer(); bindableFactory = new TestConfigurationFactory(); }
public value_resolver_tests() { contextualizer = new TestContextualizer(); }
public complex_model_mapping_tests() { contextualizer = new TestContextualizer(); configFactory = new TestConfigurationFactory(); container = new DestinationConfigurationContainer(null, configFactory); }