public void ObterPorEmail_DeveChamarRepository() { var email = "*****@*****.**"; _service.ObterPorEmail(email); _repositoryMock.Verify(x => x.ObterContatoPorEmail(email), Times.Once); }
public void Contato_ObterObterPorEmail_ObtemPorEmail() { var resultado = _contatoService.ObterPorEmail("email"); _contatoRepositoryMock.Verify(x => x.ObterPorEmail("email"), Times.Once); }