public Asp330TestLedCheckIntegrationTests() { ItemRepository = UnitOfWork.Asp330Tests; SubItemRepository = UnitOfWork.Asp330TestLedChecks; Entities = FakerAsp330.Asp330TestFaker(ListCount); var ids = Entities.Select(testEntity => testEntity.Asp330TestId).ToList(); SubEntities = FakerAsp330.Asp330TestLedCheckFaker(ids); }
public Asp330TestIntegrationTests() { UnitOfWork = new UnitOfWork(new TceContext()); Repository = UnitOfWork.Asp330Tests; Entities = FakerAsp330.Asp330TestFaker(ListCount); var ids = Entities.Select(testEntity => testEntity.Asp330TestId).ToList(); Asp330TestAspSelfChecks = FakerAsp330.Asp330TestAspSelfCheckFaker(ids); Asp330TestButtonChecks = FakerAsp330.Asp330TestButtonCheckFaker(ids); Asp330TestBuzzerChecks = FakerAsp330.Asp330TestBuzzerCheckFaker(ids); Asp330TestCommRamBootloads = FakerAsp330.Asp330TestCommRamBootloadFaker(ids); Asp330TestConditionalPmDueResets = FakerAsp330.Asp330TestConditionalPmDueResetFaker(ids); Asp330TestDatetimeChecks = FakerAsp330.Asp330TestDatetimeCheckFaker(ids); Asp330TestLcdContrastSets = FakerAsp330.Asp330TestLcdContrastSetFaker(ids); Asp330TestLcdVisualInspections = FakerAsp330.Asp330TestLcdVisualInspectionFaker(ids); Asp330TestLedChecks = FakerAsp330.Asp330TestLedCheckFaker(ids); Asp330TestLiIonBatteryChecks = FakerAsp330.Asp330TestLiIonBatteryCheckFaker(ids); Asp330TestTotalPowerFailureAlarms = FakerAsp330.Asp330TestTotalPowerFailureAlarmFaker(ids); for (var i = 0; i < ListCount; i++) { Asp330TestAspSelfChecks[i].Asp330Test = Entities[i]; Entities[i].Asp330TestAspSelfCheck = Asp330TestAspSelfChecks[i]; Asp330TestButtonChecks[i].Asp330Test = Entities[i]; Entities[i].Asp330TestButtonCheck = Asp330TestButtonChecks[i]; Asp330TestBuzzerChecks[i].Asp330Test = Entities[i]; Entities[i].Asp330TestBuzzerCheck = Asp330TestBuzzerChecks[i]; Asp330TestCommRamBootloads[i].Asp330Test = Entities[i]; Entities[i].Asp330TestCommRamBootload = Asp330TestCommRamBootloads[i]; Asp330TestConditionalPmDueResets[i].Asp330Test = Entities[i]; Entities[i].Asp330TestConditionalPmDueReset = Asp330TestConditionalPmDueResets[i]; Asp330TestDatetimeChecks[i].Asp330Test = Entities[i]; Entities[i].Asp330TestDatetimeCheck = Asp330TestDatetimeChecks[i]; Asp330TestLcdContrastSets[i].Asp330Test = Entities[i]; Entities[i].Asp330TestLcdContrastSet = Asp330TestLcdContrastSets[i]; Asp330TestLcdVisualInspections[i].Asp330Test = Entities[i]; Entities[i].Asp330TestLcdVisualInspection = Asp330TestLcdVisualInspections[i]; Asp330TestLedChecks[i].Asp330Test = Entities[i]; Entities[i].Asp330TestLedCheck = Asp330TestLedChecks[i]; Asp330TestLiIonBatteryChecks[i].Asp330Test = Entities[i]; Entities[i].Asp330TestLiIonBatteryCheck = Asp330TestLiIonBatteryChecks[i]; Asp330TestTotalPowerFailureAlarms[i].Asp330Test = Entities[i]; Entities[i].Asp330TestTotalPowerFailureAlarm = Asp330TestTotalPowerFailureAlarms[i]; } }