Esempio n. 1
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Resolver.GetConfigurator().Bind <ICodeInjector>().To <CSharpInjector>(LanguageType.CSharp);
     Resolver.GetConfigurator().Bind <ICodeInjector>().To <VbCodeInjector>(LanguageType.VisualBasic);
 }
Esempio n. 2
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <FileTransfer>(TransferMethods.File);
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <HttpFileTrasfer>(TransferMethods.Http);
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <FtpTrasfer>(TransferMethods.Ftp);
     Resolver.GetConfigurator().Bind <IFileTransfer>().To <FileTransfer>();
     Resolver.GetConfigurator().UnBind <ILogging>().AllAndBind().To <Log4NetLogging>();
     Logging.ResetLogger();
 }
Esempio n. 3
0
 public AutoFacIntegrationTests()
 {
     try
     {
         Resolver.LoadIocContainer(new AutoFacFactory());
     }
     catch (Exception)
     {
     }
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <AutoFacTestBindings>();
 }
 public void Initialize()
 {
     ContainerFactory.Current.KillAllInstances();
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     BatchProcessorFactory.BindKernel <CoordinatedData>()
     .SetBatchRepository <MemoryRepository>()
     .SetLogger <LoggerMock>()
     .SetCoordinator <ImportFirstLastName>()
     .SetCoordinator <EmailImporter>()
     .SetCoordinator <Synchronizer>()
     .SetCoordinator <Exporter>();
 }
Esempio n. 5
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
Esempio n. 6
0
 public ConfigSetTests()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestConfigServiceBindings>();
 }
 public void Initialize()
 {
     ContainerFactory.Current.KillAllInstances();
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
Esempio n. 8
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
     Scope = RequestResponseScopefactory.CreateScope();
 }
Esempio n. 9
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestModuleBindingConfiguration>();
 }
Esempio n. 10
0
 public BenchmarkTest()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <Blueprint>();
 }
Esempio n. 11
0
 public void Initialize()
 {
     KernelScope = Resolver.BeginKernelScope();
     Resolver.LoadModuleConfiguration <TestBinding>();
     Resolver.GetConfigurator().UnBind <IReplaceableSerializer>().AllAndBind().To <JsonReplaceableSerializer>().SetSingletonScope().AllowOverride = false;
 }