예제 #1
0
        public void remote_testing_mode()
        {
            FubuMode.SetupForTestingMode();
            FubuMode.RemoveTestingMode();

            FubuMode.InTestingMode().ShouldBeFalse();
        }
예제 #2
0
        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;
 }
예제 #4
0
 public void setup_for_testing_mode()
 {
     PackageRegistry.Properties.Remove(FubuMode.Testing);
     FubuMode.SetupForTestingMode();
     FubuMode.InTestingMode().ShouldBeTrue();
 }