Esempio n. 1
0
 public void it_should_throw_an_ArgumentNullException_when_the_type_is_null_for_the_key_specified()
 {
     using (var helper = new AutofacServiceLocatorHelper())
     {
         helper.ValidateType(helper.AutofacServiceLocator.Invoking(x => x.Register("my key", null)), "implType");
     }
 }
Esempio n. 2
0
 public void it_should_throw_an_ArgumentNullException_when_the_type_is_null_for_the_contract_type_specified()
 {
     using (var helper = new AutofacServiceLocatorHelper())
     {
         helper.ValidateType(
             helper.AutofacServiceLocator.Invoking(x => x.Register(typeof(IMyTestingContract), (Type)null)),
             "implType");
     }
 }
 public void it_should_throw_an_ArgumentNullException_when_the_type_is_null_for_the_key_specified()
 {
     using (var helper = new AutofacServiceLocatorHelper())
     {
         helper.ValidateType(helper.AutofacServiceLocator.Invoking(x => x.Register("my key", null)), "implType");
     }
 }
 public void it_should_throw_an_ArgumentNullException_when_the_type_is_null_for_the_contract_type_specified()
 {
     using (var helper = new AutofacServiceLocatorHelper())
     {
         helper.ValidateType(
             helper.AutofacServiceLocator.Invoking(x => x.Register(typeof (IMyTestingContract), (Type) null)),
             "implType");
     }
 }