public void Setup() { It = new FakeChannel(); var registerTask = new RegisterTask(It, new FakeChannel()); try { registerTask.Process(); } catch(Exception err) { ActualException = err; } }
public void Setup() { var registerIncomingChannel = new FakeChannel(); registerIncomingChannel.Enqueue(new CustomerDrinkRequestMessage()); It = new FakeChannel(); var registerTask = new RegisterTask(It, registerIncomingChannel); registerTask.Process(); }