public void WithServiceType_CalledWithNullServiceType_ExpectArgumentNullExceptionWithCorrectParamName() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithServiceType(null)).ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("serviceType"); }
public void WithDefaultResponse_CalledWithNullResponse_ExpectNoArgumentNullException() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithDefaultResponse(null)).ShouldNotThrow<ArgumentNullException>(); }
public void WithRequestMessageBinder_CalledWithNullRequestMessageBinder_ExpectArgumentNullExceptionWithCorrectParamName() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithRequestMessageBinder(null)).ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("requestMessageBinder"); }
public void WithMethod_CalledWithNullMethod_ExpectArgumentNullExceptionWithCorrectParamName() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithMethod(null)).ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("method"); }
public void WithModule_CalledWithNullModule_ExpectArgumentNullExceptionWithCorrectParamName() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithModule(null)).ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("module"); }
public void WithRequestMessageBinder_CalledWithNullRequestMessageBinder_ExpectArgumentNullExceptionWithCorrectParamName() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithRequestMessageBinder(null)).ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("requestMessageBinder"); }
public void WithServiceMethodInvocation_CalledWithNullServiceMethodInvocation_ExpectArgumentNullExceptionWithCorrectParamName() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithServiceMethodInvocation(null)).ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("serviceMethodInvocation"); }
public void WithDefaultResponse_CalledWithNullResponse_ExpectNoArgumentNullException() { var builder = new RouteDispatchBuilder(); builder.Invoking(x => x.WithDefaultResponse(null)).ShouldNotThrow <ArgumentNullException>(); }