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); }
public BestellingRepository(IBestellingContext context) { this.context = context ?? throw new NotImplementedException("IBestellingContext is leeg"); }
public BestellingRepository(IBestellingContext bestellingContext, IGerechtContext gerechtContext) { BestellingContext = bestellingContext; GerechtContext = gerechtContext; }
public BestellingRepository(IBestellingContext orderContext) { Context = orderContext; }
public BestellingRepository(IBestellingContext context) { this.Context = context; }
public BestellingRepository(IBestellingContext bestellingContext) { this.bestellingContext = bestellingContext; }
public void SetUp() { Context = new BestellingTestContext(); }
public BestellingController() { context = new BestellingMSSQLContext(); repo = new BestellingRepository(context); }