// private EventStoreTestContainer _eventStoreTestContainer; public PaymentTestFixture() { PaymentHistoryRepository = new PaymentHistoryRepository(null, null); var appFactory = new WebApplicationFactory <Startup>(); TestClient = appFactory.CreateClient(); }
public void Setup() { var dbName = Guid.NewGuid().ToString(); var contextBuilder = new DbContextOptionsBuilder <PaymentsDataContext>() .UseInMemoryDatabase(databaseName: dbName) .Options; context = new PaymentsDataContext(contextBuilder); sut = new PaymentHistoryRepository(context); }
public void Dispose() { if (RestaurantBookingRepository != null) { RestaurantBookingRepository.Dispose(); RestaurantBookingRepository = null; } if (PaymentHistoryRepository != null) { PaymentHistoryRepository.Dispose(); PaymentHistoryRepository = null; } }
public UnitOfWork(PlutoContext context) { _ILog = Log.GetInstance; _context = context; AppUsers = new UserRepository(context); Students = new StudentRepository(context); PaymentHistories = new PaymentHistoryRepository(context); Payments = new PaymentRepository(context); studentclasses = new StudentClassRepository(context); departments = new DepartmentRepository(context); regions = new RegionRepository(context); studentstatuses = new StudentStatusRepository(context); employees = new EmployeeRepository(context); employeedocuments = new EmployeeDocumentRepository(context); payrollamounts = new PayrollAmountRepository(context); employeecategories = new EmployeeCategoryRepository(context); employeelevelsofeducation = new EmployeeLevelOfEducationRepository(context); payrollrates = new PayrollRateRepository(context); taxrates = new TaxRateRepository(context); ssnitrates = new SSNITRateRepository(context); studentsubjects = new StudentSubjectRepository(context); payrollallowances = new PayrollAllowancesRepository(context); employeetypes = new EmployeeTypeRepository(context); employeeloanhistories = new EmployeeLoanHistoryRepository(context); employeeloans = new EmployeeLoanRepository(context); exams = new ExamRepository(context); marks = new MarkRepository(context); externalhelper = new ExternalHelperRepository(context); hostels = new HostelRepository(context); libraries = new LibraryRepository(context); transports = new TransportRepository(context); expenses = new ExpenseRepository(context); expensecategories = new ExpenseCategoryRepository(context); incomes = new IncomeRepository(context); incomecategories = new IncomeCategoryRepository(context); books = new BookRepository(context); booktypes = new BookTypeRepository(context); rooms = new RoomRepository(context); payrolldates = new PayrollDateRepository(context); allowances = new AllowanceRepository(context); }
public RestaurantBookingPaymentBLL() { RestaurantBookingRepository = new RestaurantBookingRepository(); PaymentHistoryRepository = new PaymentHistoryRepository(); }