public async Task Deve_excluir_Contato_com_sucesso() { var nome = "TestExclusao"; var contatoViewModel = CreateViewModel(nome: nome); var id = await _contatosAppService.Create(contatoViewModel); Assert.True(await _contatosAppService.Delete(id)); Assert.True(NotificationContext.Successfully); }
public async Task <IActionResult> Delete(int id) { return(await TryExecuteAsync(_contatosAppService.Delete(id))); }