public void NotErrorMessage_ShouldNotHaveErrorPayload()
 {
     foreach (var message in messages.SkipLast(errorMessagesCount))
     {
         dynamic dynamicMessage = message;
         Assert.IsFalse(MessagingTestHelper.IsMessagePayloadError(dynamicMessage));
     }
 }
 public void ErrorMessage_ShouldHaveErrorPayload()
 {
     foreach (var message in messages.TakeLast(errorMessagesCount))
     {
         dynamic dynamicMessage = message;
         Assert.IsTrue(MessagingTestHelper.IsMessagePayloadError(dynamicMessage));
     }
 }