private static IContainer ConfigureContainer() { var builder = new ContainerBuilder(); builder.RegisterType <Application>(); var bootstrap = new CalculatorBootStrapper(); return(bootstrap.Configure(builder)); }
public ConfigureTestFramework(IMessageSink diagnosticMessageSink) : base(diagnosticMessageSink) { var builder = new ContainerBuilder(); builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly()) .Where(t => t.Name.EndsWith(TestSuffixConvention)); builder.Register(context => new TestOutputHelper()) .AsSelf() .As <ITestOutputHelper>() .InstancePerLifetimeScope(); var bootstrap = new CalculatorBootStrapper(); Container = bootstrap.Configure(builder); }