public void RegisterServicesInto_ArrayOverloadCalledWithNullModule_ExpectArgumentNullExceptionWithCorrectParamName(RouteRegistrar registrar) { registrar.Invoking(x => x.RegisterServicesInto(null, typeof(object), typeof(string))) .ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("module"); }
public void WithDispatchContext_CalledWithNullContext_ExpectArgumentNullExceptionWithCorrectParamName(RouteRegistrar registrar) { registrar.Invoking(x => x.WithDispatchContext(null)) .ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("context"); }
public void RegisterServiceInto_CalledWithNullServiceType_ExpectArgumentNullExceptionWithCorrectParamName( RouteRegistrar registrar, NancyModule module) { registrar.Invoking(x => x.RegisterServiceInto(module, null)) .ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("serviceType"); }
public void RegisterServicesInto_EnumerableOverloadCalledWithNullServiceTypes_ExpectArgumentNullExceptionWithCorrectParamName( RouteRegistrar registrar, NancyModule module) { registrar.Invoking(x => x.RegisterServicesInto(module, (IEnumerable<Type>) null)) .ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("serviceTypes"); }
public void RegisterServicesInto_ArrayOverloadCalledWithNullModule_ExpectArgumentNullExceptionWithCorrectParamName(RouteRegistrar registrar) { registrar.Invoking(x => x.RegisterServicesInto(null, typeof(object), typeof(string))) .ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("module"); }
public void RegisterServiceInto_CalledWithNullServiceType_ExpectArgumentNullExceptionWithCorrectParamName( RouteRegistrar registrar, NancyModule module) { registrar.Invoking(x => x.RegisterServiceInto(module, null)) .ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("serviceType"); }
public void WithDispatchContext_CalledWithNullContext_ExpectArgumentNullExceptionWithCorrectParamName(RouteRegistrar registrar) { registrar.Invoking(x => x.WithDispatchContext(null)) .ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("context"); }
public void RegisterServicesInto_EnumerableOverloadCalledWithNullServiceTypes_ExpectArgumentNullExceptionWithCorrectParamName( RouteRegistrar registrar, NancyModule module) { registrar.Invoking(x => x.RegisterServicesInto(module, (IEnumerable <Type>)null)) .ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("serviceTypes"); }