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

            _context = new SWContext(options);
            InitializeDB();
        }
예제 #2
0
 public SellerService(SWContext context)
 {
     _context = context;
 }
예제 #3
0
 public CharactersRepository(SWContext dataContext)
 {
     DataContext = dataContext;
 }
예제 #4
0
 public CategoriasController(SWContext context)
 {
     _context = context;
 }
예제 #5
0
 public DepartmentService(SWContext context)
 {
     _context = context;
 }
예제 #6
0
 /// <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;
 }
예제 #7
0
 public SalesRecordService(SWContext context)
 {
     _context = context;
 }
예제 #8
0
 public ProdutoesController(SWContext context)
 {
     _context = context;
 }
예제 #9
0
 public MoviesService(SWContext context)
 {
     _context = context;
 }
예제 #10
0
 //public SeedingService()
 //{
 //}
 public SeedingService(SWContext context)
 {
     db = context;
 }
예제 #11
0
 public HeartbeatsController(SWContext ctx)
     : base(ctx)
 {
 }
예제 #12
0
 public PersonDataService(SWContext swContext)
 {
     this.SWContext = swContext;
 }
예제 #13
0
 public EpisodesRepository(SWContext dataContext)
 {
     DataContext = dataContext;
 }
예제 #14
0
 public DepartmentsController(SWContext context)
 {
     _context = context;
 }