public void GivenBusInitializerOptionsWhenSetInvalidSerializerTypeShouldThrow() { var builder = new BusInitializerOptionsBuilder(new ConfigurationBuilder().Build()); Action action = () => builder .SetSerializer <AbstractSerializerStub>() .Build(); action.Should().Throw <ArgumentException>(); }
public void GivenBusInitializerOptionsWhenNotSetConnectionStringShouldThrow() { var builder = new BusInitializerOptionsBuilder(new ConfigurationBuilder().Build()); Action action = () => builder .SetSerializer <BusSerializerStub>() .Build(); action.Should().Throw <ArgumentNullException>(); }