public void Without_best_practice_enforcement_it_throws_if_specified_type_is_a_command() { var source = new TypePublisherSource(typeof(Command), PublisherAddress.CreateFromEndpointName("Destination")); Assert.That(() => source.GenerateWithoutBestPracticeEnforcement(new Conventions()).ToArray(), Throws.Exception.Message.Contains("because it is a command")); }
public void Without_best_practice_enforcement_it_throws_if_specified_type_is_not_a_message() { var source = new TypePublisherSource(typeof(NonMessage), PublisherAddress.CreateFromEndpointName("Destination")); Assert.That(() => source.GenerateWithoutBestPracticeEnforcement(new Conventions()).ToArray(), Throws.Exception.Message.Contains("it is not considered a message")); }