Example #1
0
 public CreateLoanHandler(IGTLContext context, ILoanRepository loanRepo, ILoanHelper loanHelper, ICopyRepository copyRepo)
 {
     _loanRepo   = loanRepo;
     _loanHelper = loanHelper;
     _copyRepo   = copyRepo;
     _context    = context;
 }
Example #2
0
        public IntegrationBase()
        {
            var server = new TestServer(new WebHostBuilder()
                                        .ConfigureAppConfiguration(config =>
                                                                   config.AddJsonFile("appsettings.test.json", optional: true, reloadOnChange: true))
                                        .UseStartup <Startup>());

            _mediator = server.Host.Services.GetRequiredService <IMediator>();

            _context = server.Host.Services.GetRequiredService <IGTLContext>();

            ScriptRunner.ResetDatabase();
        }
Example #3
0
 public CopyRepository(IGTLContext context)
 {
     _context = context;
 }
Example #4
0
 public MemberRepository(IGTLContext context)
 {
     _context = context;
 }
Example #5
0
 public StaffRepository(IGTLContext context)
 {
     Context = context;
 }
Example #6
0
 public LoanerCardRepository(IGTLContext context)
 {
     _context = context;
 }
Example #7
0
 public LibraryRepository(IGTLContext context)
 {
     _context = context;
 }