public void GetObjectConstructionTasks()
        {
            // Assign
            IDependencyResolver dependencyResolver = new DependencyResolver(new Config());
            IConfigFactory <IObjectConstructionTask> dataMapperResolverConfigFactory = new ObjectConstructionTaskConfigFactory(dependencyResolver);

            // Act
            var result = dataMapperResolverConfigFactory.GetItems();

            // Assert
            Assert.AreEqual(8, result.Count());
        }
        public void GetObjectConstructionTasks()
        {
            // Assign
            IDependencyResolver dependencyResolver = new DependencyResolver(new Config());
            IConfigFactory<AbstractObjectConstructionTask> dataMapperResolverConfigFactory = new ObjectConstructionTaskConfigFactory(dependencyResolver);

            // Act
            var result = dataMapperResolverConfigFactory.GetItems();

            // Assert
            Assert.AreEqual(8, result.Count());
        }
 public DependencyResolver(Config config)
 {
     Config = config;
     CacheManager = () => new HttpCache();
     QueryParameterFactory = new QueryParameterConfigFactory();
     DataMapperResolverFactory = new DataMapperTaskConfigFactory();
     DataMapperFactory = new DataMapperConfigFactory(QueryParameterFactory);
     ConfigurationResolverFactory = new ConfigurationResolverConfigFactory();
     ObjectConstructionFactory = new ObjectConstructionTaskConfigFactory(this);
     ObjectSavingFactory = new ObjectSavingTaskConfigFactory();
     ConfigurationMapFactory = new ConfigurationMapConfigFactory();
 }
 public DependencyResolver(Config config)
 {
     Config = config;
     Log = new Log();
     CacheManager = () => new NetMemoryCacheManager();
     QueryParameterFactory = new QueryParameterConfigFactory();
     DataMapperResolverFactory = new DataMapperTaskConfigFactory();
     DataMapperFactory = new DataMapperConfigFactory(QueryParameterFactory);
     ConfigurationResolverFactory = new ConfigurationResolverConfigFactory();
     ObjectConstructionFactory = new ObjectConstructionTaskConfigFactory(this);
     ObjectSavingFactory = new ObjectSavingTaskConfigFactory();
     ConfigurationMapFactory = new ConfigurationMapConfigFactory();
     GlassHtmlFactory = new GlassHtmlFactory();
     ItemVersionHandler = new ItemVersionHandler(config);
 }