public async Task <GenericCommandResult <ClientEntity> > Repprove([FromServices] IClientHandler handler,
                                                                          [FromBody] RepproveClientCommand command)
        {
            var result = (GenericCommandResult <ClientEntity>) await handler.HandleAsync(command);

            return(result);
        }
 public async Task Create_Client_Without_Name()
 {
     var result = (GenericCommandResult<ClientEntity>)await _handler.HandleAsync(_commandWithoutName);
     Assert.AreEqual(result.Success, false);
 }
        public async Task Repprove_Client_Without_Id()
        {
            var result = (GenericCommandResult <ClientEntity>) await _handler.HandleAsync(_commandWithoutId);

            Assert.AreEqual(result.Success, false);
        }