Beispiel #1
0
        public CadastroClienteUseCaseTest()
        {
            var cadastroEnderecoUseCase = new Mock <ICadastroEnderecoUseCase>();

            _mockClienteRepository = new Mock <IClienteRepository>();
            _cadastroCliente       = new CadastroClienteUseCase(_mockClienteRepository.Object, cadastroEnderecoUseCase.Object);

            _mockClienteRepository
            .Setup(x => x.BuscarTodos())
            .Returns(HelperMock.MockListaCliente());
        }
Beispiel #2
0
 public ClienteHelper(IMemoryCache cache, IMapper mapper, ICadastroClienteUseCase cadastroClienteUseCase)
     : base(cache, cadastroClienteUseCase)
 {
     _mapper = mapper;
 }
 public ClienteController(IMapper mapper, ICadastroClienteUseCase cadastroClienteUseCase, IClienteHelper clienteHelper)
 {
     _mapper = mapper;
     _cadastroClienteUseCase = cadastroClienteUseCase;
     _clienteHelper          = clienteHelper;
 }