public void UpdateTableWithRandomData()
        {
            var opsions = new DbContextOptionsBuilder <MonitoringDbContext>().UseInMemoryDatabase(databaseName: "CCCMonitoring").Options;
            MonitoringDbContext monitoringDbContext = new MonitoringDbContext(opsions);

            var queueGroups = monitoringDbContext.QueueGroup.ToList();

            foreach (var queueGroup in queueGroups)
            {
                Random random = new Random();
                queueGroup.SLA_Percent = random.Next(Constants.MinValueSLA_Percent, Constants.MaxValueSLA_Percent);
            }

            monitoringDbContext.QueueGroup.UpdateRange(queueGroups);

            var monitorDatas = monitoringDbContext.MonitorData.ToList();

            foreach (var monitorData in monitorDatas)
            {
                Random random = new Random();
                monitorData.HandledWithinSL = random.Next(Constants.MinValueSHandledWithinSL, Constants.MaxValueHandledWithinSL);
                monitorData.Offered         = random.Next(Constants.MinValueOffered, Constants.MaxValueOffered);
            }
            monitoringDbContext.MonitorData.UpdateRange(monitorDatas);
            monitoringDbContext.SaveChanges();
        }
 public void Add(TEntity entity)
 {
     Context.Set <TEntity>().Add(entity);
     Context.SaveChanges();
 }