public void Setup() { persister = CreateTimeoutPersister(); messageSender = new FakeMessageSender(); manager = new DefaultTimeoutManager { TimeoutsPersister = persister, MessageSender = messageSender, }; receiver = new TimeoutPersisterReceiver { TimeoutManager = manager, TimeoutsPersister = persister, MessageSender = messageSender, SecondsToSleepBetweenPolls = 1, }; }
public void Setup() { Address.InitializeLocalAddress("MyEndpoint"); Configure.GetEndpointNameAction = () => "MyEndpoint"; persister = CreateTimeoutPersister(); messageSender = new FakeMessageSender(); manager = new DefaultTimeoutManager { TimeoutsPersister = persister, MessageSender = messageSender, }; receiver = new TimeoutPersisterReceiver(manager) { TimeoutsPersister = persister, MessageSender = messageSender, SecondsToSleepBetweenPolls = 1, }; }