public void when_add_null_as_broker_it_should_fail() { var configuration = ConfigurationTests.CreateMessageRouterConfiguration(); Action sut = () => configuration.AddBroker(configuration: null); sut.Should().ThrowExactly <ArgumentNullException>(); }
public void when_all_required_properties_set_it_should_be_validated() { var sut = ConfigurationTests.CreateMessageRouterConfiguration(); sut.Validate().Should().NotBeNull().And.Subject.Should().BeEmpty("there is no errors in the configuration"); }