예제 #1
0
        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);
        }
예제 #2
0
 public SearchEngine(IGetUser user, IGetTicket ticket, IGetOrganization org)
 {
     _user   = user;
     _ticket = ticket;
     _org    = org;
 }