public void it_should_throw_an_ArgumentNullException_when_the_instance_to_be_injected_is_null() { using (var helper = new AutofacServiceLocatorHelper()) { helper.ValidateInstance( helper.AutofacServiceLocator.Invoking(x => x.Inject <IMyTestingContract>(null)), "instance"); } }
it_should_throw_an_ArgumentNullException_when_the_instance_is_null_for_the_generic_type_specified() { using (var helper = new AutofacServiceLocatorHelper()) { helper.ValidateInstance( helper.AutofacServiceLocator.Invoking( x => x.Register <IMyTestingContract>((IMyTestingContract)null)), "instance"); } }
public void it_should_throw_an_ArgumentNullException_when_the_instance_to_be_injected_is_null() { using (var helper = new AutofacServiceLocatorHelper()) { helper.ValidateInstance( helper.AutofacServiceLocator.Invoking(x => x.Inject<IMyTestingContract>(null)), "instance"); } }
public void it_should_throw_an_ArgumentNullException_when_the_instance_is_null_for_the_generic_type_specified() { using (var helper = new AutofacServiceLocatorHelper()) { helper.ValidateInstance( helper.AutofacServiceLocator.Invoking( x => x.Register<IMyTestingContract>((IMyTestingContract) null)), "instance"); } }