Inheritance: AbstractDependencyResolver
		public static IDependencyResolver CreateResolver(){
			var config = new Glass.Mapper.Sc.Config();

			var dependencyResolver = new DependencyResolver(config);
			// add any changes to the standard resolver here
			return dependencyResolver;
		}
Beispiel #2
0
 public static IDependencyResolver CreateStandardResolver(bool useWindsorContainer = false)
 {
     
     var config = new Config {UseIoCConstructor = useWindsorContainer};
     var resolver = new DependencyResolver(config);
     return resolver;
 }
        public static IDependencyResolver CreateStandardResolver(Config config =null)
        {
            if (config == null)
                config = new Config();

            var resolver = new DependencyResolver(config);
            return resolver;
        }
        public static IDependencyResolver CreateResolver()
        {
            var config             = new Glass.Mapper.Sc.Config();
            var dependencyResolver = new DependencyResolver(config);

            // add any changes to the standard resolver here
            return(dependencyResolver);
        }
        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());
        }
Beispiel #6
0
 public QueryParameterConfigFactory(DependencyResolver dependencyResolver)
 {
     DependencyResolver = dependencyResolver;
     Init();
 }