public void GetSingleClinicianSubscriptionView() { var fakeApp = FakeCollection.First(t => t.UserType == 2); var single = testCtx.Set <SubscriptionsView>().FirstOrDefault(f => f.SubscriptionId == fakeApp.SubscriptionId); Assert.AreEqual(fakeApp.SubscriptionId, single.SubscriptionId); Assert.AreEqual(fakeApp.UserId, single.UserId); Assert.AreEqual(fakeApp.SubscriptionType, single.SubscriptionType); Assert.AreEqual(fakeApp.SubscriptionDate, single.SubscriptionDate); Assert.AreEqual(fakeApp.ExpirationDate, single.ExpirationDate); Assert.IsTrue(single.IsTrial == false); Assert.AreEqual(fakeApp.IsTrial, single.IsTrial); Assert.AreEqual(fakeApp.ApplicationId, single.ApplicationId); Assert.AreEqual(single.UserType, 2); Assert.AreEqual(fakeApp.UserType, single.UserType); Assert.AreEqual(fakeApp.InstitutionId, single.InstitutionId); Assert.AreEqual(fakeApp.PaymentMethod, single.PaymentMethod); Assert.AreEqual(fakeApp.PaymentId, single.PaymentId); Assert.AreEqual(fakeApp.CheckId, single.CheckId); Assert.AreEqual(fakeApp.CheckStatus, single.CheckStatus); Assert.AreEqual(fakeApp.CheckNumber, single.CheckNumber); Assert.IsTrue(single.CheckCode == 0); Assert.AreEqual(fakeApp.CheckCode, single.CheckCode); Assert.AreEqual(fakeApp.CheckDateRecieved, single.CheckDateRecieved); Assert.AreEqual(fakeApp.CheckAmount, single.CheckAmount); Assert.IsNull(single.PayPalId); Assert.IsNull(single.PayPalPaymentDate); Assert.IsNull(single.PayPalPaymentStatus); Assert.IsNull(single.PayPalPayment); }
public void GetSingleChecks() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.CheckId); Assert.AreEqual(fakeApp.CheckId, single.CheckId); Assert.AreEqual(fakeApp.CheckNumber, single.CheckNumber); }
public void GetSinglePatients_Institutions() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.UserId); Assert.AreEqual(fakeApp.UserId, single.UserId); Assert.AreEqual(fakeApp.InstitutionId, single.InstitutionId); }
public void GetSingleDailyTimeSlots() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.TimeSlotId); Assert.AreEqual(fakeApp.TimeSlotId, single.TimeSlotId); Assert.AreEqual(fakeApp.TimeSlotBoundary, single.TimeSlotBoundary); }
//List<AppSettings> FakeAppSettings = new List<AppSettings>(); //NuMedicsGlobalContext ctx; //public UnitTest1() //{ // InitContext(); //} //private void InitContext() //{ // var builder = new DbContextOptionsBuilder<NuMedicsGlobalContext>().UseInMemoryDatabase(); // var nCtx = new NuMedicsGlobalContext(builder.Options); // var apps = Enumerable.Range(1, 3).Select(s => new AppSettings { // ApplicationId = Guid.NewGuid(), // Description = $"Description {s}", // LastUpdatedByUser = Guid.NewGuid(), // Name = $"Name {s}", // Value = $"Value {s}" // }); // nCtx.AppSettings.AddRange(apps); // int added = nCtx.SaveChanges(); // ctx = nCtx; //} //[TestMethod] public void TestMethod1() { string expected = FakeCollection.First().Name; var repo = new AppSettingsRepo(testCtx); var app = repo.Get().First(); Assert.AreEqual(expected, app.Name); }
public void GetSinglePumpProgramType() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.TypeId); Assert.AreEqual(fakeApp.TypeId, single.TypeId); Assert.AreEqual(fakeApp.Name, single.Name); }
public void GetSingleProgramTimeSlots() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.SlotId); Assert.AreEqual(fakeApp.SlotId, single.SlotId); Assert.AreEqual(fakeApp.Value, single.Value); }
public void GetSingleCGMSessions() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.CgmsessionId); Assert.AreEqual(fakeApp.CgmsessionId, single.CgmsessionId); Assert.AreEqual(fakeApp.SessionDateTime, single.SessionDateTime); }
public void GetSinglePaymentMethod() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.MethodId); Assert.AreEqual(fakeApp.MethodId, single.MethodId); Assert.AreEqual(fakeApp.MethodName, single.MethodName); }
public void GetSingleUsers() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.UserId); Assert.AreEqual(fakeApp.UserId, single.UserId); Assert.AreEqual(fakeApp.CreationDate, single.CreationDate); }
public void GetSingleBolusDelivery() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.BolusDeliveryId); Assert.AreEqual(fakeApp.BolusDeliveryId, single.BolusDeliveryId); Assert.AreEqual(fakeApp.AmountDelivered, single.AmountDelivered); }
public void GetSingleBGTargets() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.TargetId); Assert.AreEqual(fakeApp.TargetId, single.TargetId); Assert.AreEqual(fakeApp.TargetBg, single.TargetBg); }
public void GetSingleBloodGlucoseReadings() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.ReadingId); Assert.AreEqual(fakeApp.ReadingId, single.ReadingId); Assert.AreEqual(fakeApp.ReadingDateTime, single.ReadingDateTime); }
public void GetSingleCareSettings() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.CareSettingsId); Assert.AreEqual(fakeApp.CareSettingsId, single.CareSettingsId); Assert.AreEqual(fakeApp.UserId, single.UserId); }
public void GetSingleUserPhotos() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.UserId); Assert.AreEqual(fakeApp.UserId, single.UserId); Assert.AreEqual(fakeApp.Photo, single.Photo); }
public void GetSingleAppLoginHistories() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.HistoryId); Assert.AreEqual(fakeApp.HistoryId, single.HistoryId); Assert.AreEqual(fakeApp.LoginDate, single.LoginDate); }
public void GetSingleBolusCarbs() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.CarbId); Assert.AreEqual(fakeApp.CarbId, single.CarbId); Assert.AreEqual(fakeApp.CarbValue, single.CarbValue); }
public void GetSingleReadingEventTypes() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.EventId); Assert.AreEqual(fakeApp.EventId, single.EventId); Assert.AreEqual(fakeApp.EventName, single.EventName); }
public void GetSingleLogMessageTypes() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.Code); Assert.AreEqual(fakeApp.Code, single.Code); Assert.AreEqual(fakeApp.TypeName, single.TypeName); }
public void GetSingleType() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.ApplicationId); Assert.AreEqual(fakeApp.ApplicationId, single.ApplicationId); Assert.AreEqual(fakeApp.ApplicationName, single.ApplicationName); }
public void GetDeviceHostMessage() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.MessageId); Assert.AreEqual(fakeApp.MessageId, single.MessageId); Assert.AreEqual(fakeApp.Message, single.Message); }
public void GetSingleDeviceHostStatusTypes() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.StatusId); Assert.AreEqual(fakeApp.StatusId, single.StatusId); Assert.AreEqual(fakeApp.Status, single.Status); }
public void GetSingleDatabaseInfo() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.Id); Assert.AreEqual(fakeApp.Id, single.Id); Assert.AreEqual(fakeApp.SiteId, single.SiteId); }
public void GetSingleSharedAreas() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.DataShareCategoryId); Assert.AreEqual(fakeApp.DataShareCategoryId, single.DataShareCategoryId); Assert.AreEqual(fakeApp.RequestId, single.RequestId); }
public void GetSingleUserTypes() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.TypeId); Assert.AreEqual(fakeApp.TypeId, single.TypeId); Assert.AreEqual(fakeApp.TypeName, single.TypeName); }
public void GetSingleBasalDeliveryData() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.DataId); Assert.AreEqual(fakeApp.DataId, single.DataId); Assert.AreEqual(fakeApp.Name, single.Name); }
public void GetSingleCorrectionFactors() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.FactorId); Assert.AreEqual(fakeApp.FactorId, single.FactorId); Assert.AreEqual(fakeApp.CorrectionFactorValue, single.CorrectionFactorValue); }
public void GetSingleAppUserSettings() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.AppUserSettingId); Assert.AreEqual(fakeApp.AppUserSettingId, single.AppUserSettingId); Assert.AreEqual(fakeApp.Name, single.Name); }
public void GetSingleDataShareCategories() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.CategoryId); Assert.AreEqual(fakeApp.CategoryId, single.CategoryId); Assert.AreEqual(fakeApp.CategoryName, single.CategoryName); }
public void GetSingleCGMReminders() { var fakeApp = FakeCollection.First(); var single = repo.GetSingle(fakeApp.ReminderId); Assert.AreEqual(fakeApp.ReminderId, single.ReminderId); Assert.AreEqual(fakeApp.Type, single.Type); }