public void Dado_um_novo_usuario_sua_validacao_devera_falhar() { var command = new RegistrarUsuarioCommand(); command.Login = ""; command.Senha = "123456t"; var service = new RegistrarUsuarioService(command, new FakeUsuarioRepository()); Assert.True(service.HasNotifications()); }
public IActionResult Post([FromBody] RegistrarUsuarioCommand command) { var service = new RegistrarUsuarioService(command, _usuarioRepo); return(ReturnResponse(service, new { message = "Usuário cadastrado com sucesso" }, null)); }