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