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