Beispiel #1
0
        private static ContaPagarController CreateContaPagarController(IMock <IContaPagarRepository> mockContaPagarRepository)
        {
            var contaPagarService = new ContaPagarService(mockContaPagarRepository.Object);
            var controller        = new ContaPagarController(contaPagarService)
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };

            return(controller);
        }
Beispiel #2
0
 public ContaPagarController(ContaPagarDAO dao, ContaPagarService contaPagarService)
 {
     this.DAO = dao;
     this.ContaPagarService = contaPagarService;
 }