public BestellingController(IConfiguration config)
 {
     BestellingContext = new BestellingMSSQLContext(config.GetConnectionString("DefaultConnection"));
     GerechtContext    = new GerechtMSSQLContext(config.GetConnectionString("DefaultConnection"));
     BestellingRepo    = new BestellingRepository(BestellingContext, GerechtContext);
     GerechtRepo       = new GerechtRepository(GerechtContext);
 }
Пример #2
0
 public BestellingRepository(IBestellingContext context)
 {
     this.context = context ?? throw new NotImplementedException("IBestellingContext is leeg");
 }
Пример #3
0
 public BestellingRepository(IBestellingContext bestellingContext, IGerechtContext gerechtContext)
 {
     BestellingContext = bestellingContext;
     GerechtContext    = gerechtContext;
 }
 public BestellingRepository(IBestellingContext orderContext)
 {
     Context = orderContext;
 }
Пример #5
0
 public BestellingRepository(IBestellingContext context)
 {
     this.Context = context;
 }
Пример #6
0
 public BestellingRepository(IBestellingContext bestellingContext)
 {
     this.bestellingContext = bestellingContext;
 }
Пример #7
0
 public void SetUp()
 {
     Context = new BestellingTestContext();
 }
Пример #8
0
 public BestellingController()
 {
     context = new BestellingMSSQLContext();
     repo    = new BestellingRepository(context);
 }