Ejemplo n.º 1
0
 public UnitOfWorkMem()
 {
     context          = new VideoAppContext();
     VideoRepository  = new VideoRepositoryEFMemory(context);
     GenreRepository  = new GenreRepository(context);
     RentalRepository = new RentalRepository(context);
 }
Ejemplo n.º 2
0
 public UnitOfWork()
 {
     context = new VideoAppContext();
     context.Database.EnsureCreated();
     VideoRepository = new VideoRepositoryEFMemory(context);
     GenreRepository = new GenreRepo(context);
 }
Ejemplo n.º 3
0
 public UnitOfWork()
 {
     context = new VideoAppContext();
     // context.Database.EnsureDeleted();
     context.Database.EnsureCreated();
     VideoRepository = new VideoRepositoryEFMemory(context);
     OrderRepository = new OrderRepository(context);
 }
Ejemplo n.º 4
0
        public UnitOfWorkMem()
        {
            context = new InMemoryContext();
            context.Database.EnsureCreated();

            VideoRepository  = new VideoRepositoryEFMemory(context);
            GenreRepository  = new GenreRepository(context);
            RentalRepository = new RentalRepository(context);
        }
Ejemplo n.º 5
0
 public UnitOfWork()
 {
     context         = new VideoAppContext();
     VideoRepository = new VideoRepositoryEFMemory(context);
     OrderRepository = new OrderRepository(context);
 }
 public UnitOfWorkMem()
 {
     context         = new InMemoryContext();
     VideoRepository = new VideoRepositoryEFMemory(context);
     GenreRepository = new GenreRepoEFMemory(context);
 }
Ejemplo n.º 7
0
 public UnitOfWork()
 {
     context              = new VideoShackContext();
     VideoRepository      = new VideoRepositoryEFMemory(context);
     CollectionRepository = new CollectionRepository(context);
 }