Ejemplo n.º 1
0
 public ResourceProcessingService(
     IResourceFileService resourceFileService,
     IMinificationService minificationService)
 {
     _resourceFileService = resourceFileService;
     _minificationService = minificationService;
 }
Ejemplo n.º 2
0
 public ResourceProcessingService(
     IResourceFileService resourceFileService,
     IMinificationService minificationService)
 {
     _resourceFileService = resourceFileService;
     _minificationService = minificationService;
 }
 public ResourceProcessingService(
     IResourceFileService resourceFileService,
     IMinificationService minificationService,
     ICacheFileService cacheFileService,
     ICombinatorResourceEventHandler eventHandler)
 {
     _resourceFileService = resourceFileService;
     _minificationService = minificationService;
     _cacheFileService = cacheFileService;
     _eventHandler = eventHandler;
 }
 public ResourceProcessingService(
     IResourceFileService resourceFileService,
     IMinificationService minificationService,
     ICacheFileService cacheFileService,
     ICombinatorResourceEventHandler eventHandler)
 {
     _resourceFileService = resourceFileService;
     _minificationService = minificationService;
     _cacheFileService    = cacheFileService;
     _eventHandler        = eventHandler;
 }
        public virtual void Init()
        {
            var builder = new ContainerBuilder();

            builder.RegisterAutoMocking(MockBehavior.Loose);

            builder.RegisterInstance(new StubVirtualPathProvider(new StubFileSystem(new StubClock()))).As<IVirtualPathProvider>();
            builder.RegisterType<ResourceFileService>().As<IResourceFileService>();

            CombinatorResourceHelper.Register(builder);

            _container = builder.Build();

            _resourceRepository = new ResourceRepository(_container);
            _resourceFileService = _container.Resolve<IResourceFileService>();
        }
Ejemplo n.º 6
0
        public virtual void Init()
        {
            var builder = new ContainerBuilder();

            builder.RegisterAutoMocking(MockBehavior.Loose);


            builder.RegisterInstance(new StubVirtualPathProvider(new StubFileSystem(new StubClock()))).As <IVirtualPathProvider>();
            builder.RegisterType <ResourceFileService>().As <IResourceFileService>();

            CombinatorResourceHelper.Register(builder);

            _container = builder.Build();

            _resourceRepository  = new ResourceRepository(_container);
            _resourceFileService = _container.Resolve <IResourceFileService>();
        }