public void ObterPorEmail_DeveChamarRepository()
        {
            var email = "*****@*****.**";

            _service.ObterPorEmail(email);

            _repositoryMock.Verify(x => x.ObterContatoPorEmail(email), Times.Once);
        }
Ejemplo n.º 2
0
        public void Contato_ObterObterPorEmail_ObtemPorEmail()
        {
            var resultado = _contatoService.ObterPorEmail("email");

            _contatoRepositoryMock.Verify(x => x.ObterPorEmail("email"), Times.Once);
        }