public void PasswordHandlerTest_RegisterPassword_ReturnsFalse()
        {
            var command = new CreatePasswordCommand();

            command.Password = "";

            var handler = new PasswordHandler(new FakePasswordValidationService());
            var result  = handler.Handle(command);

            Assert.AreEqual(false, handler.IsValid);
        }
Exemple #2
0
 public ICommandResult Post([FromBody] CreatePasswordCommand command)
 {
     return(_handler.Handle(command));
 }