public PatientService(
     IConfiguration config,
     LapbaseContext lapbaseContext,
     LapbaseNewContext lapbaseNewContext)
 {
     this.lapbaseContext    = lapbaseContext;
     this.lapbaseNewContext = lapbaseNewContext;
     this.config            = config;
 }
        public PatientServiceTest()
        {
            var DbContextOptionsBuilder = new DbContextOptionsBuilder <LapbaseNewContext>();

            options = DbContextOptionsBuilder
                      .UseInMemoryDatabase(databaseName: "Test_Database")
                      .Options;
            var configurationBuilder = new ConfigurationBuilder();

            config         = configurationBuilder.Build();
            context        = new LapbaseNewContext(options);
            lapbaseContext = new LapbaseContext();
        }
 public ExerciseItemRepository()
 {
     Lb = new LapbaseContext();
 }
Exemple #4
0
 public FoodRepository()
 {
     Lb = new LapbaseContext();
 }
 public WeightRepository()
 {
     Lb  = new LapbaseContext();
     Lbd = new LbDemoContext();
 }
Exemple #6
0
 public UserRepository()
 {
     Lb = new LapbaseContext();
 }