public void EnvelopeCannotBeNull() { try { sut.SendAsync<TestCommand>(null).Wait(); Assert.Fail(); } catch (AggregateException e) { Assert.IsInstanceOfType(e.InnerException, typeof(ArgumentNullException)); } }