public void It_should_fail_when_the_password_does_not_match()
 {
     SetRepositoryHitSuccess(true);
     SetPasswordSuccess(false);
     logonResult = commandHandler.Handle(command);
     logonResult.IsSuccessful.Should().BeFalse();
 }
 public void It_should_fail_when_a_user_is_not_found()
 {
     SetRepositoryHitSuccess(false);
     logonResult = commandHandler.Handle(command);
     logonResult.IsSuccessful.Should().BeFalse();
     logonResult.User.Should().BeAssignableTo<Guest>();
 }
 public void It_should_update_LastLogonAt()
 {
     SetRepositoryHitSuccess(true);
     SetPasswordSuccess(true);
     logonResult = commandHandler.Handle(command);
     logonResult.User.LastLogonAt.Should().BeCloseTo(DateTime.UtcNow);
 }
 public void It_should_return_successful()
 {
     SetPasswordSuccess(true);
     logonResult = commandHandler.Handle(command);
     logonResult.IsSuccessful.Should().BeTrue();
 }