public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.PathwayId.Should().Be(ExpectedResult.PathwayId); ActualResult.RouteName.Should().Be(ExpectedResult.RouteName); ActualResult.PathwayName.Should().Be(ExpectedResult.PathwayName); ActualResult.ShowSomethingIsNotRight.Should().Be(ExpectedResult.ShowSomethingIsNotRight); ActualResult.ShowQueriedInfo.Should().Be(ExpectedResult.ShowQueriedInfo); }
public void Then_Expected_Result_Is_Returned() { ActualResult.Should().NotBeNull(); ActualResult.IsSelectedCoreSameAsWithdrawn.Should().BeFalse(); ActualResult.IsSuccess.Should().BeFalse(); ActualResult.ProfileId.Should().Be(ProfileId); ActualResult.Uln.Should().Be(Uln); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.Id.Should().Be(ApiClientResponse.Id); ActualResult.DisplayName.Should().Be(ApiClientResponse.DisplayName); ActualResult.Ukprn.Should().Be(ApiClientResponse.Ukprn); ActualResult.TlevelTitle.Should().Be(ApiClientResponse.ProviderTlevel.TlevelTitle); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.IsSuccess.Should().Be(_expectedResult.IsSuccess); ActualResult.TotalCount.Should().Be(_expectedResult.TotalCount); ActualResult.LrsCount.Should().Be(_expectedResult.LrsCount); ActualResult.ModifiedCount.Should().Be(_expectedResult.ModifiedCount); ActualResult.SavedCount.Should().Be(_expectedResult.SavedCount); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.ProfileId.Should().Be(expectedApiResult.ProfileId); ActualResult.Uln.Should().Be(expectedApiResult.Uln); ActualResult.Name.Should().Be(string.Concat(expectedApiResult.Firstname, " ", expectedApiResult.Lastname)); ActualResult.ProviderDisplayName.Should().Be($"{expectedApiResult.ProviderName} ({expectedApiResult.ProviderUkprn})"); ActualResult.PathwayStatus.Should().Be(expectedApiResult.Status); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.IsModified.Should().BeTrue(); ActualResult.IsSuccess.Should().BeFalse(); ActualResult.ProfileId.Should().Be(_expectedApiResult.ProfileId); ActualResult.Uln.Should().Be(_expectedApiResult.Uln); ActualResult.Name.Should().Be(_expectedApiResult.Name); }
public void Then_Expected_Result_Is_Returned() { ActualResult.Should().NotBeNull(); ActualResult.IsModified.Should().BeTrue(); ActualResult.IsCoreNotSupported.Should().BeFalse(); ActualResult.IsSuccess.Should().BeTrue(); ActualResult.ProfileId.Should().Be(ViewModel.ProfileId); ActualResult.Uln.Should().Be(Uln); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.DepartmentName.Should().Be(_expectedApiResult.DepartmentName); ActualResult.OrganisationName.Should().Be(_expectedApiResult.OrganisationName); ActualResult.AddressLine1.Should().Be(_expectedApiResult.AddressLine1); ActualResult.AddressLine2.Should().Be(_expectedApiResult.AddressLine2); ActualResult.Town.Should().Be(_expectedApiResult.Town); ActualResult.Postcode.Should().Be(_expectedApiResult.Postcode); }
public void Then_Returns_Expected_Results() { var expectedIsAllowedValue = expectedApiResult.Status == Common.Enum.RegistrationPathwayStatus.Active || expectedApiResult.Status == Common.Enum.RegistrationPathwayStatus.Withdrawn; ActualResult.Should().NotBeNull(); ActualResult.Uln.Should().Be(expectedApiResult.Uln.ToString()); ActualResult.RegistrationProfileId.Should().Be(expectedApiResult.RegistrationProfileId); ActualResult.IsAllowed.Should().Be(expectedIsAllowedValue); ActualResult.IsRegisteredWithOtherAo.Should().Be(expectedApiResult.IsRegisteredWithOtherAo); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.Count().Should().Be(3); var actualFirstResult = ActualResult.First(); var expectedFirstResult = expectedaApiResult.First(); expectedFirstResult.Id.Should().Be(actualFirstResult.Id); expectedFirstResult.DisplayName.Should().Be(actualFirstResult.DisplayName); }
public void Then_Returns_Expected_Results() { var expectedReponse = ApiClientResponse.FirstOrDefault(); var expectedConfirmationText = string.Format(Confirmation.Section_Heading, EnumExtensions.GetEnumValue <TlevelReviewStatus>(expectedReponse.StatusId).ToString().ToLowerInvariant()); var expectedTlevelTitle = expectedReponse.TlevelTitle; ActualResult.Should().NotBeNull(); ActualResult.IsQueried.Should().Be(true); ActualResult.PathwayId.Should().Be(PathwayId); ActualResult.TlevelConfirmationText.Should().Be(expectedConfirmationText); ActualResult.TlevelTitle.Should().Be(expectedTlevelTitle); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.IsSuccess.Should().Be(UploadRegistrationsResponseViewModel.IsSuccess); ActualResult.Stats.Should().NotBeNull(); ActualResult.Stats.TotalRecordsCount.Should().Be(UploadRegistrationsResponseViewModel.Stats.TotalRecordsCount); ActualResult.Stats.NewRecordsCount.Should().Be(UploadRegistrationsResponseViewModel.Stats.NewRecordsCount); ActualResult.Stats.AmendedRecordsCount.Should().Be(UploadRegistrationsResponseViewModel.Stats.AmendedRecordsCount); ActualResult.Stats.UnchangedRecordsCount.Should().Be(UploadRegistrationsResponseViewModel.Stats.UnchangedRecordsCount); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.PathwayId.Should().Be(ApiClientResponse.PathwayId); ActualResult.PathwayName.Should().Be(ApiClientResponse.PathwayName); ActualResult.PathwayStatusId.Should().Be(ApiClientResponse.PathwayStatusId); ActualResult.TqAwardingOrganisationId.Should().Be(ApiClientResponse.TqAwardingOrganisationId); ActualResult.Specialisms.Should().NotBeNull(); ActualResult.Specialisms.Count().Should().Be(2); ActualResult.Specialisms.First().Should().Be(ApiClientResponse.Specialisms.First()); ActualResult.Query.Should().BeNull(); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.ProfileId.Should().Be(expectedApiResult.ProfileId); ActualResult.Uln.Should().Be(expectedApiResult.Uln); ActualResult.Name.Should().Be(expectedApiResult.Name); ActualResult.DateofBirth.Should().Be(expectedApiResult.DateofBirth); ActualResult.ProviderName.Should().Be(expectedApiResult.ProviderName); ActualResult.IsLearnerRegistered.Should().Be(expectedApiResult.IsLearnerRegistered); ActualResult.IsLearnerRecordAdded.Should().Be(expectedApiResult.IsLearnerRecordAdded); ActualResult.IsEnglishAndMathsAchieved.Should().Be(expectedApiResult.IsEnglishAndMathsAchieved); ActualResult.HasLrsEnglishAndMaths.Should().Be(expectedApiResult.HasLrsEnglishAndMaths); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.ProvidersSelectList.Should().NotBeNullOrEmpty(); ActualResult.ProvidersSelectList.Count.Should().Be(ApiClientResponse.Count); var expectedProviderResult = ApiClientResponse.FirstOrDefault(); var actualProviderDetailsResult = ActualResult.ProvidersSelectList.FirstOrDefault(); actualProviderDetailsResult.Should().NotBeNull(); actualProviderDetailsResult.Value.Should().Be(expectedProviderResult.Ukprn.ToString()); actualProviderDetailsResult.Text.Should().Be($"{expectedProviderResult.DisplayName} ({expectedProviderResult.Ukprn})"); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.Count().Should().Be(2); var expectedProviderDetailsResult = ApiClientResponse.FirstOrDefault(); var actualProviderDetailsResult = ActualResult.FirstOrDefault(); actualProviderDetailsResult.Should().NotBeNull(); actualProviderDetailsResult.ProviderId.Should().Be(expectedProviderDetailsResult.Id); actualProviderDetailsResult.DisplayName.Should().Be(expectedProviderDetailsResult.DisplayName); actualProviderDetailsResult.Ukprn.Should().Be(expectedProviderDetailsResult.Ukprn); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.CoreSelectList.Should().NotBeNullOrEmpty(); ActualResult.CoreSelectList.Count.Should().Be(ApiClientResponse.Count); var expectedCoreResult = ApiClientResponse.FirstOrDefault(); var actualCoreDetailsResult = ActualResult.CoreSelectList.FirstOrDefault(); actualCoreDetailsResult.Should().NotBeNull(); actualCoreDetailsResult.Value.Should().Be(expectedCoreResult.Code.ToString()); actualCoreDetailsResult.Text.Should().Be($"{expectedCoreResult.Name} ({expectedCoreResult.Code})"); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.IsAnyReviewPending.Should().BeTrue(); ActualResult.QueriedTlevels.Should().NotBeNull(); ActualResult.QueriedTlevels.Count().Should().Be(1); ActualResult.QueriedTlevels.First().PathwayId.Should().Be(55); ActualResult.QueriedTlevels.First().TlevelTitle.Should().Be("P5"); ActualResult.ConfirmedTlevels.Should().NotBeNull(); ActualResult.ConfirmedTlevels.Count().Should().Be(3); ActualResult.ConfirmedTlevels.First().PathwayId.Should().Be(22); ActualResult.ConfirmedTlevels.First().TlevelTitle.Should().Be("P2"); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.ProfileId.Should().Be(_expectedApiResult.ProfileId); ActualResult.Uln.Should().Be(_expectedApiResult.Uln); ActualResult.LearnerName.Should().Be(_expectedApiResult.LearnerName); ActualResult.DateofBirth.Should().Be(_expectedApiResult.DateofBirth); ActualResult.ProviderName.Should().Be(_expectedApiResult.ProviderName); ActualResult.TlevelTitle.Should().Be(_expectedApiResult.TlevelTitle); ActualResult.Status.Should().Be(_expectedApiResult.Status); ActualResult.IsLearnerRegistered.Should().BeTrue(); ActualResult.IsIndustryPlacementAdded.Should().Be(_expectedApiResult.IsIndustryPlacementAdded); ActualResult.IndustryPlacementStatus.Should().Be(_expectedApiResult.IndustryPlacementStatus); ActualResult.HasPathwayResult.Should().Be(_expectedApiResult.HasPathwayResult); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); var actualResult = ActualResult; var expectedResult = _expectedApiResult.AddressResult[0].DeliveryPointAddress; actualResult.Udprn.Should().Be(expectedResult.Uprn); actualResult.FormattedAddress.Should().Be(expectedResult.FormattedAddress); actualResult.OrganisationName.Should().Be(expectedResult.OrganisationName); actualResult.AddressLine1.Should().Be(expectedResult.FormattedBuildingNumberAndThroughfare); actualResult.AddressLine2.Should().BeNullOrWhiteSpace(); actualResult.Town.Should().Be(expectedResult.Town); actualResult.Postcode.Should().Be(expectedResult.Postcode); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.AddressSelectList.Should().NotBeNullOrEmpty(); ActualResult.AddressSelectList.Count.Should().Be(1); ActualResult.SelectedAddressUprn.Should().BeNull(); ActualResult.SelectedAddress.Should().BeNull(); ActualResult.DepartmentName.Should().BeNull(); ActualResult.Postcode.Should().BeNull(); var actualResult = ActualResult.AddressSelectList[0]; var expectedResult = _expectedApiResult.AddressResult[0].DeliveryPointAddress; actualResult.Text.Should().Be(expectedResult.FormattedAddress); actualResult.Value.Should().Be(expectedResult.Uprn); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.Specialisms.Should().NotBeNullOrEmpty(); ActualResult.Specialisms.Count.Should().Be(ApiClientResponse.Specialisms.Count); var expectedSpecialismResult = ApiClientResponse.Specialisms.FirstOrDefault(); var actualSpecialismResult = ActualResult.Specialisms.FirstOrDefault(); actualSpecialismResult.Should().NotBeNull(); actualSpecialismResult.Id.Should().Be(expectedSpecialismResult.Id); actualSpecialismResult.Code.Should().Be(expectedSpecialismResult.Code); actualSpecialismResult.Name.Should().Be(expectedSpecialismResult.Name); actualSpecialismResult.DisplayName.Should().Be($"{expectedSpecialismResult.Name} ({expectedSpecialismResult.Code})"); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.ProviderId.Should().Be(ApiClientResponse.Id); ActualResult.DisplayName.Should().Be(ApiClientResponse.DisplayName); ActualResult.Ukprn.Should().Be(ApiClientResponse.Ukprn); ActualResult.Tlevels.Should().NotBeNull(); ActualResult.Tlevels.Count().Should().Be(2); var expectedTlevelResult = ApiClientResponse.Tlevels.FirstOrDefault(); var actualProviderTlevelResult = ActualResult.Tlevels.FirstOrDefault(); actualProviderTlevelResult.Should().NotBeNull(); actualProviderTlevelResult.TqAwardingOrganisationId.Should().Be(expectedTlevelResult.TqAwardingOrganisationId); actualProviderTlevelResult.TlevelTitle.Should().Be(expectedTlevelResult.TlevelTitle); }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.ProfileId.Should().Be(expectedApiResult.ProfileId); ActualResult.Uln.Should().Be(expectedApiResult.Uln); ActualResult.Name.Should().Be(string.Concat(expectedApiResult.Firstname, " ", expectedApiResult.Lastname)); ActualResult.ProviderDisplayName.Should().Be($"{expectedApiResult.ProviderName} ({expectedApiResult.ProviderUkprn})"); ActualResult.PathwayDisplayName.Should().Be($"{expectedApiResult.PathwayName} ({expectedApiResult.PathwayLarId})"); ActualResult.PathwayAssessmentSeries.Should().Be(expectedApiResult.PathwayAssessmentSeries); ActualResult.IsResultExist.Should().BeFalse(); var expectedSpecialismDisplayName = !string.IsNullOrWhiteSpace(expectedApiResult.SpecialismLarId) ? $"{expectedApiResult.SpecialismName} ({expectedApiResult.SpecialismLarId})" : null; ActualResult.SpecialismDisplayName.Should().Be(expectedSpecialismDisplayName); ActualResult.SpecialismAssessmentSeries.Should().Be(expectedApiResult.SpecialismAssessmentSeries); ActualResult.PathwayStatus.Should().Be(expectedApiResult.Status); }
public void Then_Expected_Results_Are_Returned() { ActualResult.Should().NotBeNull(); ActualResult.ProfileId.Should().Be(expectedApiResultDetails.ProfileId); ActualResult.AssessmentId.Should().Be(expectedApiResultDetails.PathwayAssessmentId); ActualResult.AssessmentSeries.Should().Be(expectedApiResultDetails.PathwayAssessmentSeries); ActualResult.PathwayDisplayName.Should().Be($"{expectedApiResultDetails.PathwayName} ({expectedApiResultDetails.PathwayLarId})"); ActualResult.SelectedGradeCode.Should().Be(expectedApiResultDetails.PathwayResultCode); ActualResult.Grades.Should().NotBeNull(); ActualResult.Grades.Count.Should().Be(expectedApiLookupData.Count); for (int i = 0; i < ActualResult.Grades.Count; i++) { ActualResult.Grades[i].Id.Should().Be(expectedApiLookupData[i].Id); ActualResult.Grades[i].Code.Should().Be(expectedApiLookupData[i].Code); ActualResult.Grades[i].Value.Should().Be(expectedApiLookupData[i].Value); } }
public void Then_Returns_Expected_Results() { ActualResult.Should().NotBeNull(); ActualResult.Uln.Should().Be(expectedApiResult.Uln); ActualResult.Uln.Should().Be(expectedApiResult.Uln); ActualResult.Name.Should().Be(string.Concat(expectedApiResult.Firstname, " ", expectedApiResult.Lastname)); ActualResult.DateofBirth.Should().Be(expectedApiResult.DateofBirth); ActualResult.ProviderDisplayName.Should().Be($"{expectedApiResult.ProviderName} ({expectedApiResult.ProviderUkprn})"); ActualResult.PathwayDisplayName.Should().Be($"{expectedApiResult.PathwayName} ({expectedApiResult.PathwayLarId})"); var expectedSpecialisms = expectedApiResult.Specialisms.OrderBy(x => x.Name).Select(x => $"{x.Name} ({x.Code})"); ActualResult.SpecialismsDisplayName.Count().Should().Be(expectedSpecialisms.Count()); ActualResult.SpecialismsDisplayName.ToList().ForEach(x => { expectedSpecialisms.Should().Contain(x); }); ActualResult.AcademicYear.Should().Be(expectedApiResult.AcademicYear); ActualResult.Status.Should().Be(expectedApiResult.Status); }
public void Then_Returns_Null() { InternalApiClient.Received(1).GetRegistrationDetailsAsync(AoUkprn, ViewModel.ProfileId, RegistrationPathwayStatus.Active); ActualResult.Should().BeNull(); }
public void Then_Returns_Expected_Results() { ActualResult.Should().Be(_expectedApiResult); }
public void Then_Returns_Expected_Results() { ActualResult.Should().BeNull(); }
public void Then_Returns_Null() { ActualResult.Should().BeNull(); }