Esempio n. 1
0
        public void TestInit()
        {
            var options = new DbContextOptionsBuilder <CMSContext>()
                          .UseInMemoryDatabase(databaseName: "Test_DB")
                          .Options;

            var context = new CMSContext(options);

            lampRepository      = new LampRepository(context);
            producentRepository = new ProducentRepository(context);
            verkoopRepository   = new VerkoopRepository(context);
            koperRepository     = new KoperRepository(context);
        }
Esempio n. 2
0
 public KopersController(CMSContext context)
 {
     koperRepository = new KoperRepository(context);
 }
 public VerkopenController(CMSContext context)
 {
     verkoopRepository = new VerkoopRepository(context);
     lampRepository    = new LampRepository(context);
     koperRepository   = new KoperRepository(context);
 }