public GetUser(ILogger <GetUser> logger, IGetOrganization getOrg, IOptions <AppSettings> settings) { _logger = logger; _getOrg = getOrg; _userFilePath = settings.Value.UsersFilePath; _ticketFilePath = settings.Value.TicketsFilePath; }
public GetOrganizationTests() { var mockLogger = new Mock <ILogger <GetOrganization> >(); AppSettings settings = new AppSettings() { OrganizationsFilePath = "Data/organizations.json", }; var _mockFilePath = new Mock <IOptions <AppSettings> >(); _mockFilePath.Setup(ap => ap.Value).Returns(settings); _service = new GetOrganization(mockLogger.Object, _mockFilePath.Object); }
public GetTicket(ILogger <GetTicket> logger, IGetOrganization getOrg, IOptions <AppSettings> settings) { _logger = logger; _getOrg = getOrg; _filePath = settings.Value.TicketsFilePath; }
public SearchEngine(IGetUser user, IGetTicket ticket, IGetOrganization org) { _user = user; _ticket = ticket; _org = org; }