Esempio n. 1
0
        public void FindAllSucess()
        {
            _enderecoRepository.Setup(x => x.FindAll()).Returns(EnderecoMock.GetEnderecos());

            var result = _enderecoService.FindAll();

            Assert.IsNotNull(result);
        }
Esempio n. 2
0
 public void Setup()
 {
     _enderecoRepository = new Mock <IEnderecoRepository>();
     _enderecoRepository.Setup(x => x.FindAll()).Returns(EnderecoMock.GetEnderecos());
     _enderecoService = new EnderecoService(_enderecoRepository.Object);
 }