public UserRequestTicketsTests() { MapperSetUp(); var communicationServiceMock = new Mock <ICommunicationService>(); var ticketControllerLogMock = GetLoggerMock <TicketsController>(); var tagServiceLogMock = GetLoggerMock <TagService>(); var ticketLinkServiceLogMock = GetLoggerMock <TicketLinkService>(); var ticketServiceLogMock = GetLoggerMock <BLL.Services.TicketService>(); var tagService = new TagService(UnitOfWork, Mapper, tagServiceLogMock.Object); var ticketLinkService = new TicketLinkService(UnitOfWork, Mapper, ticketLinkServiceLogMock.Object); var ticketService = new BLL.Services.TicketService( UnitOfWork, Mapper, tagService, ticketLinkService, ticketServiceLogMock.Object); _sut = new TicketsController( Mapper, ticketService, communicationServiceMock.Object, ticketControllerLogMock.Object); }
public UserManagesWithTicketAssignees() { MapperSetUp(); _communicationServiceMock = new Mock <ICommunicationService>(); var ticketsControllerLogMock = GetLoggerMock <TicketsController>(); var tagServiceLogMock = GetLoggerMock <TagService>(); var ticketLinkServiceLogMock = GetLoggerMock <TicketLinkService>(); var ticketServiceLogMock = GetLoggerMock <BLL.Services.TicketService>(); var tagService = new TagService(UnitOfWork, Mapper, tagServiceLogMock.Object); var ticketLinkService = new TicketLinkService(UnitOfWork, Mapper, ticketLinkServiceLogMock.Object); var ticketService = new BLL.Services.TicketService( UnitOfWork, Mapper, tagService, ticketLinkService, ticketServiceLogMock.Object); _sut = new TicketsController( Mapper, ticketService, _communicationServiceMock.Object, ticketsControllerLogMock.Object); SetupRequestHeader(_sut); }