public override void Given()
 {
     ProfileId  = 10;
     mockresult = new UpdateEnglishAndMathsQuestionViewModel
     {
         ProfileId            = ProfileId,
         IsLearnerRecordAdded = false
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <UpdateEnglishAndMathsQuestionViewModel>(ProviderUkprn, ProfileId).Returns(mockresult);
 }
 public override void Given()
 {
     ProfileId  = 10;
     mockresult = new LearnerRecordDetailsViewModel
     {
         ProfileId             = 10,
         HasLrsEnglishAndMaths = false,
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <LearnerRecordDetailsViewModel>(ProviderUkprn, ProfileId).Returns(mockresult);
 }
Ejemplo n.º 3
0
 public override void Given()
 {
     ProfileId  = 10;
     Mockresult = new LearnerRecordDetailsViewModel
     {
         ProfileId            = 10,
         IsLearnerRegistered  = false,
         IsLearnerRecordAdded = false
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <LearnerRecordDetailsViewModel>(ProviderUkprn, ProfileId).Returns(Mockresult);
 }
 public override void Given()
 {
     ProfileId  = 10;
     PathwayId  = 15;
     mockresult = new UpdateIndustryPlacementQuestionViewModel
     {
         ProfileId             = ProfileId,
         RegistrationPathwayId = PathwayId,
         IsLearnerRecordAdded  = false
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <UpdateIndustryPlacementQuestionViewModel>(ProviderUkprn, ProfileId, PathwayId).Returns(mockresult);
 }
 public override void Given()
 {
     ProfileId  = 10;
     mockresult = new UpdateEnglishAndMathsQuestionViewModel
     {
         ProfileId             = ProfileId,
         LearnerName           = "Test user",
         IsLearnerRecordAdded  = true,
         EnglishAndMathsStatus = EnglishAndMathsStatus.Achieved
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <UpdateEnglishAndMathsQuestionViewModel>(ProviderUkprn, ProfileId).Returns(mockresult);
 }
Ejemplo n.º 6
0
 public override void Given()
 {
     ProfileId  = 10;
     PathwayId  = 15;
     mockresult = new UpdateIndustryPlacementQuestionViewModel
     {
         ProfileId               = ProfileId,
         RegistrationPathwayId   = PathwayId,
         LearnerName             = "Test user",
         IsLearnerRecordAdded    = true,
         IndustryPlacementStatus = IndustryPlacementStatus.Completed
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <UpdateIndustryPlacementQuestionViewModel>(ProviderUkprn, ProfileId, PathwayId).Returns(mockresult);
 }
Ejemplo n.º 7
0
 public override void Given()
 {
     ProfileId  = 10;
     Mockresult = new LearnerRecordDetailsViewModel
     {
         ProfileId             = 10,
         RegistrationPathwayId = 15,
         Uln                       = 1235469874,
         Name                      = "Test user",
         DateofBirth               = DateTime.UtcNow.AddYears(-20),
         ProviderName              = "Barsley College (58794528)",
         PathwayName               = "Test Pathway Name (97453214)",
         IsLearnerRegistered       = true,
         IsLearnerRecordAdded      = true,
         IsEnglishAndMathsAchieved = true,
         IsSendLearner             = true,
         HasLrsEnglishAndMaths     = true,
         IndustryPlacementId       = 10,
         IndustryPlacementStatus   = IndustryPlacementStatus.Completed
     };
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <LearnerRecordDetailsViewModel>(ProviderUkprn, ProfileId).Returns(Mockresult);
 }
Ejemplo n.º 8
0
 public override void Given()
 {
     ProfileId = 0;
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <LearnerRecordDetailsViewModel>(ProviderUkprn, ProfileId).Returns(mockresult);
 }
Ejemplo n.º 9
0
 public override void Given()
 {
     ProfileId = 0;
     PathwayId = 1;
     TrainingProviderLoader.GetLearnerRecordDetailsAsync <UpdateIndustryPlacementQuestionViewModel>(ProviderUkprn, ProfileId, PathwayId).Returns(mockresult);
 }