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); }
public ICommandResult Post([FromBody] CreatePasswordCommand command) { return(_handler.Handle(command)); }