Exemple #1
0
 public void Ctor_ShouldThrowExceptionIfSignInManagerIsNull()
 {
     CustomAssertions.AssertArgumentNullExceptionThrown(() =>
     {
         _controller.WithSignInManager(null).Build();
     }, "signInManager");
 }
Exemple #2
0
 public void Ctor_ShouldThrowExceptionIfPolicyServiceIsNull()
 {
     CustomAssertions.AssertArgumentNullExceptionThrown(() =>
     {
         _controller.WithPolicyService(null).Build();
     }, "policyService");
 }
Exemple #3
0
 public void AddInsurancePolicyApplication_ShouldThrowExceptionIfPolicyIsNull()
 {
     CustomAssertions.AssertArgumentNullExceptionThrown(() =>
     {
         _service.Build().AddInsurancePolicyApplication(null);
     }, "policy");
 }
 public void Ctor_ShouldThrowExceptionIfPasswordHasherIsNull()
 {
     CustomAssertions.AssertArgumentNullExceptionThrown(() =>
     {
         _userManager.WithPasswordHasher(null).Build();
     }, "passwordHasher");
 }
Exemple #5
0
 public void Ctor_ShouldThrowExceptionIfInsurancePolicyRepositoryIsNull()
 {
     CustomAssertions.AssertArgumentNullExceptionThrown(() =>
     {
         _service.WithInsurancePolicyRepository(null).Build();
     });
 }