//IN MEMORY CONFIG public IntegrationBootstrapper() { HtmlReport.ReportHeader = "ToDo"; HtmlReport.ReportDescription = "Integration Specifications"; HtmlReport.OutputFileName = "ToDo-IntegrationSpecs.html"; Configurator.BatchProcessors.HtmlReport.Disable(); // Because TestStack.Dossier uses NSubstitute need to tell Specify not to mock MockFactory = new NullMockFactory(); AnonymousValueFixture.GlobalValueSuppliers.Add(new CodeValueSupplier()); }
public TinyIoCContainer Create(IMockFactory mockFactory) { if (mockFactory == null) { mockFactory = new NullMockFactory(); } var container = new TinyIoCContainer(); RegisterScenarios(container); RegisterScenarioContainer(container, mockFactory); return(container); }
public static void RegisterSpecify(this ContainerBuilder builder, IMockFactory mockFactory = null) { if (builder == null) { builder = new ContainerBuilder(); } if (mockFactory == null) { mockFactory = new NullMockFactory(); } RegisterScenarios(builder); RegisterScenarioContainer(builder, mockFactory); }