public IList <TqPathwayAssessment> BuildList(TqRegistrationPathway tqRegistrationPathway = null, bool isBulkUpload = true) { tqRegistrationPathway ??= new TqRegistrationPathwayBuilder().Build(); var assessmentSeries = new AssessmentSeriesBuilder().BuildList(); var tqPathwayAssessments = new List <TqPathwayAssessment> { new TqPathwayAssessment { TqRegistrationPathwayId = tqRegistrationPathway.Id, TqRegistrationPathway = tqRegistrationPathway, AssessmentSeriesId = assessmentSeries[0].Id, StartDate = DateTime.UtcNow, IsOptedin = true, IsBulkUpload = isBulkUpload, CreatedBy = Constants.CreatedByUser, CreatedOn = Constants.CreatedOn, ModifiedBy = Constants.ModifiedByUser, ModifiedOn = Constants.ModifiedOn }, new TqPathwayAssessment { TqRegistrationPathwayId = tqRegistrationPathway.Id, TqRegistrationPathway = tqRegistrationPathway, AssessmentSeriesId = assessmentSeries[1].Id, StartDate = DateTime.UtcNow, IsOptedin = true, IsBulkUpload = isBulkUpload, CreatedBy = Constants.CreatedByUser, CreatedOn = Constants.CreatedOn, ModifiedBy = Constants.ModifiedByUser, ModifiedOn = Constants.ModifiedOn } }; return(tqPathwayAssessments); }
public IList <TqSpecialismAssessment> BuildList(TqRegistrationSpecialism tqRegistrationSpecialism = null) { tqRegistrationSpecialism ??= new TqRegistrationSpecialismBuilder().Build(); var assessmentSeries = new AssessmentSeriesBuilder().BuildList(); var tqSpecialismAssessments = new List <TqSpecialismAssessment> { new TqSpecialismAssessment { TqRegistrationSpecialismId = tqRegistrationSpecialism.Id, TqRegistrationSpecialism = tqRegistrationSpecialism, AssessmentSeriesId = assessmentSeries[0].Id, StartDate = DateTime.UtcNow, IsOptedin = true, IsBulkUpload = true, CreatedBy = Constants.CreatedByUser, CreatedOn = Constants.CreatedOn, ModifiedBy = Constants.ModifiedByUser, ModifiedOn = Constants.ModifiedOn }, new TqSpecialismAssessment { TqRegistrationSpecialismId = tqRegistrationSpecialism.Id, TqRegistrationSpecialism = tqRegistrationSpecialism, AssessmentSeriesId = assessmentSeries[1].Id, StartDate = DateTime.UtcNow, IsOptedin = true, IsBulkUpload = true, CreatedBy = Constants.CreatedByUser, CreatedOn = Constants.CreatedOn, ModifiedBy = Constants.ModifiedByUser, ModifiedOn = Constants.ModifiedOn } }; return(tqSpecialismAssessments); }