本文整理汇总了C#中IWindsorContainer.ConfigureWiringForTestsCallBeforeAllOtherWiring方法的典型用法代码示例。如果您正苦于以下问题:C# IWindsorContainer.ConfigureWiringForTestsCallBeforeAllOtherWiring方法的具体用法?C# IWindsorContainer.ConfigureWiringForTestsCallBeforeAllOtherWiring怎么用?C# IWindsorContainer.ConfigureWiringForTestsCallBeforeAllOtherWiring使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IWindsorContainer
的用法示例。
在下文中一共展示了IWindsorContainer.ConfigureWiringForTestsCallBeforeAllOtherWiring方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConfigureContainerForTests
public static void ConfigureContainerForTests(IWindsorContainer container)
{
container.ConfigureWiringForTestsCallBeforeAllOtherWiring();
SharedWiring(container);
container.Register(
Component.For<IServiceBus>().ImplementedBy<SynchronousBus>().LifestylePerWebRequest()
);
container.ConfigureWiringForTestsCallAfterAllOtherWiring();
}
示例2: WireContainer
public void WireContainer()
{
Container = new WindsorContainer();
Container.ConfigureWiringForTestsCallBeforeAllOtherWiring();
Container.Install(
FromAssembly.Containing<Domain.ContainerInstallers.AccountRepositoryInstaller>(),
FromAssembly.Containing<Domain.Events.EventStore.ContainerInstallers.AccountManagementDomainEventStoreInstaller>()
);
Container.Register(
Component.For<IServiceBus>().ImplementedBy<SynchronousBus>().LifestylePerWebRequest(),
Component.For<IWindsorContainer>().Instance(Container)
);
}
示例3: WireContainer
public void WireContainer()
{
Container = new WindsorContainer();
Container.ConfigureWiringForTestsCallBeforeAllOtherWiring();
Container.Register(
Component.For<IUtcTimeTimeSource, DummyTimeSource>().Instance(DummyTimeSource.Now).LifestyleSingleton(),
Component.For<IServiceBus>().ImplementedBy<SynchronousBus>().LifestylePerWebRequest(),
Component.For<IWindsorContainer>().Instance(Container),
Component.For<IConnectionStringProvider>().Instance(new ConnectionStringConfigurationParameterProvider()).LifestyleSingleton()
);
Container.Install(
FromAssembly.Containing<Domain.ContainerInstallers.AccountRepositoryInstaller>(),
FromAssembly.Containing<Domain.Events.EventStore.ContainerInstallers.AccountManagementDomainEventStoreInstaller>()
);
}