Beispiel #1
0
        public MoviesServiceTest()
        {
            var options = new DbContextOptionsBuilder <SWContext>()
                          .UseInMemoryDatabase(databaseName: "TestSWMovies").Options;

            _context = new SWContext(options);
            InitializeDB();
        }
Beispiel #2
0
 public SellerService(SWContext context)
 {
     _context = context;
 }
 public CharactersRepository(SWContext dataContext)
 {
     DataContext = dataContext;
 }
Beispiel #4
0
 public CategoriasController(SWContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public DepartmentService(SWContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Ctor (the db context instance will be injected via Ninject)
 /// Consult NinjectWebCommon.cs in App_Start
 /// </summary>
 /// <param name="ctx"></param>
 public BaseODataController(SWContext ctx)
 {
     this.db = ctx;
 }
Beispiel #7
0
 public SalesRecordService(SWContext context)
 {
     _context = context;
 }
Beispiel #8
0
 public ProdutoesController(SWContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public MoviesService(SWContext context)
 {
     _context = context;
 }
Beispiel #10
0
 //public SeedingService()
 //{
 //}
 public SeedingService(SWContext context)
 {
     db = context;
 }
Beispiel #11
0
 public HeartbeatsController(SWContext ctx)
     : base(ctx)
 {
 }
 public PersonDataService(SWContext swContext)
 {
     this.SWContext = swContext;
 }
Beispiel #13
0
 public EpisodesRepository(SWContext dataContext)
 {
     DataContext = dataContext;
 }
 public DepartmentsController(SWContext context)
 {
     _context = context;
 }