public CustomersTests()
 {
     _context           = InMemoryDatabase.GetContextWithMockedData();
     _unitOfWork        = new UnitOfWork(_context);
     _driversRepository = new DriversRepository(_context);
     _identityProvider  = new FakeIdentityProvider();
 }
        private static void MockCustomers()
        {
            var customer = new Customer(FakeIdentityProvider.TestCustomerId);

            using (var context = new RideHailingContext(_options))
            {
                context.Customers.Add(customer);

                context.SaveChanges();
            }
        }
        private static void MockDrivers()
        {
            var driver = new Driver("driver1");

            using (var context = new RideHailingContext(_options))
            {
                context.Drivers.Add(driver);

                context.SaveChanges();
            }
        }
 public CustomersRepository(RideHailingContext context)
 {
     _context = context;
 }
 public DriversRepository(RideHailingContext context)
 {
     _context = context;
 }
 public RidesRepository(RideHailingContext hailingContext)
 {
     _hailingContext = hailingContext;
 }
 public CouponsRepository(RideHailingContext context)
 {
     _context = context;
 }