public void Given_Client_provided_ClientId_When_Client_is_register_with_claims_then_return_true() { var handler = new ClientRegisterationVerificationQueryHandler(_mockDbContext.Object); var query = new ClientRegisterationVerificationQuery { ClientIdOrCan = "1" }; var result = handler.Execute(query); Assert.IsTrue(result); }
public void Given_Client_provided_CAN_When_CAN_is_not_register_with_claims_and_Pending_Users_then_return_false() { var handler = new ClientRegisterationVerificationQueryHandler(_mockDbContext.Object); var query = new ClientRegisterationVerificationQuery { ClientIdOrCan = "pen3" }; var result = handler.Execute(query); Assert.IsFalse(result); }