public void Setup() { Dispatch = ResponseAwaiterDispatchTestObjects.GetProperResponseAwaiterDispatch(); NormalOrder = ProtocolTestObjects.GetNormalOrder(); NormalConfirmation = ProtocolTestObjects.GetNormalConfirmation(); NormalReply = ProtocolTestObjects.GetNormalReply(); }
public async Task Should_return_confirmation_when_proper_Reply_was_sent() { var testReply = ProtocolTestObjects.GetNormalReply(); var result = await ProtocolHandler.SendAsync(testReply); var confirmation = ProtocolHandler.Retrieve().ConfirmationOf(testReply); Assert.True(result); Assert.IsType <Confirmation>(confirmation); Assert.Equal(testReply.ID, confirmation.Confirms); }