Beispiel #1
0
 public GetUser(ILogger <GetUser> logger, IGetOrganization getOrg, IOptions <AppSettings> settings)
 {
     _logger         = logger;
     _getOrg         = getOrg;
     _userFilePath   = settings.Value.UsersFilePath;
     _ticketFilePath = settings.Value.TicketsFilePath;
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public GetTicket(ILogger <GetTicket> logger, IGetOrganization getOrg, IOptions <AppSettings> settings)
 {
     _logger   = logger;
     _getOrg   = getOrg;
     _filePath = settings.Value.TicketsFilePath;
 }
Beispiel #4
0
 public SearchEngine(IGetUser user, IGetTicket ticket, IGetOrganization org)
 {
     _user   = user;
     _ticket = ticket;
     _org    = org;
 }