public void initialize() { DbContextOptions <InsuranceContractingContext> optionsContext = new DbContextOptionsBuilder <InsuranceContractingContext>() .UseInMemoryDatabase("DbTest") .Options; Context = new InsuranceContractingContext(optionsContext); Context.Database.EnsureCreated(); }
public ContractController(InsuranceContractingContext context, IShortestChain shortestChainHelper) { this.context = context; this.shortestChainHelper = shortestChainHelper; }