public void remote_testing_mode() { FubuMode.SetupForTestingMode(); FubuMode.RemoveTestingMode(); FubuMode.InTestingMode().ShouldBeFalse(); }
public void TransportCleanupActivator_is_registered_if_FubuTransport_testing_mode_is_on() { FubuMode.SetupForTestingMode(); var registry = new FubuRegistry(); registry.Services <FubuTransportServiceRegistry>(); var serviceGraph = BehaviorGraph.BuildFrom(registry).Services; serviceGraph.ServicesFor <IActivator>() .Any(x => x.Type == typeof(TransportCleanupActivator)) .ShouldBeTrue(); }
public static void SetupForTesting() { FubuMode.SetupForTestingMode(); UseSynchronousLogging = true; ApplyMessageHistoryWatching = true; }
public void setup_for_testing_mode() { PackageRegistry.Properties.Remove(FubuMode.Testing); FubuMode.SetupForTestingMode(); FubuMode.InTestingMode().ShouldBeTrue(); }