public GetTicketTests() { var mockLogger = new Mock <ILogger <GetTicket> >(); _mockGetOrg = new Mock <IGetOrganization>(); AppSettings settings = new AppSettings() { TicketsFilePath = "Data/tickets.json", }; var _mockFilePath = new Mock <IOptions <AppSettings> >(); _mockFilePath.Setup(ap => ap.Value).Returns(settings); _service = new GetTicket(mockLogger.Object, _mockGetOrg.Object, _mockFilePath.Object); }
public SearchEngine(IGetUser user, IGetTicket ticket, IGetOrganization org) { _user = user; _ticket = ticket; _org = org; }