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); }
public ContaPagarController(ContaPagarDAO dao, ContaPagarService contaPagarService) { this.DAO = dao; this.ContaPagarService = contaPagarService; }