public async Task <bool> SendWithReceiverDown() { cleanDatabase(); // Shutting it down theReceiver.Dispose(); theReceiver = null; var item = new ItemCreated { Name = "Shoe", Id = Guid.NewGuid() }; await send(c => c.Send(item)); var outgoing = loadAllOutgoingEnvelopes(theSender).SingleOrDefault(); StoryTellerAssert.Fail(outgoing == null, "No outgoing envelopes are persisted"); StoryTellerAssert.Fail(outgoing.MessageType != typeof(ItemCreated).ToMessageTypeName(), $"Envelope message type expected {typeof(ItemCreated).ToMessageTypeName()}, but was {outgoing.MessageType}"); return(true); }
public override void TearDown() { _host.Dispose(); _graph = null; _chain = null; _transport = null; _bus = null; _host = null; }
public override void TearDown() { _host.Dispose(); foreach (var locker in _nodeLockers) { locker.SafeDispose(); } _nodeLockers.Clear(); }
public when_shutting_down_the_host() { theRegistry.Handlers.DisableConventionalDiscovery(); theRegistry.Services.AddSingleton <IMainService>(mainService); theRegistry.Services.AddTransient <IFakeStore, FakeStore>(); theHost = JasperHost.For(theRegistry); theHost.Dispose(); }
public void Dispose() { _host?.Dispose(); }
public void Shutdown() { _host.Dispose(); _host = null; }
public void Dispose() { theHost?.Dispose(); }
public override void TearDown() { theHost?.Dispose(); }
public override void TearDown() { _host.Dispose(); }
public override void TearDown() { _host?.Dispose(); _host = null; }
public void Dispose() { _receiving.Dispose(); _sender.Dispose(); }
public void Dispose() { theSender?.Dispose(); theReceiver?.Dispose(); }
public override void TearDown() { theSender?.Dispose(); theReceiver?.Dispose(); }