Exemple #1
0
        public void initialize()
        {
            DbContextOptions <InsuranceContractingContext> optionsContext = new DbContextOptionsBuilder <InsuranceContractingContext>()
                                                                            .UseInMemoryDatabase("DbTest")
                                                                            .Options;

            Context = new InsuranceContractingContext(optionsContext);

            Context.Database.EnsureCreated();
        }
Exemple #2
0
 public ContractController(InsuranceContractingContext context, IShortestChain shortestChainHelper)
 {
     this.context             = context;
     this.shortestChainHelper = shortestChainHelper;
 }