Exemple #1
0
 public UnitOfWorkMem()
 {
     context          = new VideoAppContext();
     VideoRepository  = new VideoRepositoryEFMemory(context);
     GenreRepository  = new GenreRepository(context);
     RentalRepository = new RentalRepository(context);
 }
Exemple #2
0
 public UnitOfWork()
 {
     context           = new VideoAppContext();
     VideoRepository   = new VideoRepository(context);
     OrderRepository   = new OrderRepository(context);
     AddressRepository = new AddressRepository(context);
 }
 public UnitOfWork()
 {
     context = new VideoAppContext();
     context.Database.EnsureCreated();
     VideoRepository = new VideoRepositoryEFMemory(context);
     GenreRepository = new GenreRepo(context);
 }
 public UnitOfWork()
 {
     context = new VideoAppContext();
     // context.Database.EnsureDeleted();
     context.Database.EnsureCreated();
     VideoRepository = new VideoRepositoryEFMemory(context);
     OrderRepository = new OrderRepository(context);
 }
 public UnitOfWorkMemory(VideoAppContext context)
 {
     _context          = context;
     VideoRepository   = new VideoRepositoryInMemory(_context);
     ProfileRepository = new ProfileRepositoryInMemory(_context);
     UserRepository    = new UserRepositoryInMemory(_context);
     RentalRepository  = new RentalRepository(_context);
     GenreRepository   = new GenreRepository(_context);
 }
Exemple #6
0
 public UnitOfWork()
 {
     context         = new VideoAppContext();
     VideoRepository = new VideoRepositoryEFMemory(context);
     OrderRepository = new OrderRepository(context);
 }
Exemple #7
0
 public VideoRepositoryEFMemory(VideoAppContext context)
 {
     _context = context;
 }
Exemple #8
0
 public GenreRepository(VideoAppContext context)
 {
     _context = context;
 }
 public OrderRepository(VideoAppContext context)
 {
     _context = context;
 }
Exemple #10
0
 public UserRepositoryInMemory(VideoAppContext context)
 {
     _context = context;
 }
 public ProfileRepositoryInMemory(VideoAppContext context)
 {
     _context = context;
 }
 public RentalRepository(VideoAppContext context)
 {
     _context = context;
 }
Exemple #13
0
 public GenreRepo(VideoAppContext context)
 {
     this.context = context;
 }
 public ProducerRepository(VideoAppContext context)
 {
     _context = context;
 }
 public AddressRepository(VideoAppContext context)
 {
     _context = context;
 }