public void Then_National_Flag_Is_Set_If_Matches_Criteria(ImportTypes.Provider provider) { //Arrange var courseStandard = provider.Standards.FirstOrDefault(); var courseLocation = courseStandard.Locations.FirstOrDefault(); courseLocation.DeliveryModes.Add("100PercentEmployer"); var actual = new ProviderStandardLocationImport(); //Act actual = actual.Map(courseLocation, provider.Ukprn, courseStandard.StandardCode, 52.564269, -1.466056); //Assert actual.National.Should().BeTrue(); }
public void Then_Maps_The_Fields(ImportTypes.Provider provider) { //Arrange var courseStandard = provider.Standards.FirstOrDefault(); var courseLocation = courseStandard.Locations.FirstOrDefault(); var actual = new ProviderStandardLocationImport(); //Act actual = actual.Map(courseLocation, provider.Ukprn, courseStandard.StandardCode, 1, 1); //Assert actual.Ukprn.Should().Be(provider.Ukprn); actual.StandardId.Should().Be(courseStandard.StandardCode); actual.Radius.Should().Be(courseLocation.Radius); actual.DeliveryModes.Should().Be(string.Join("|", courseLocation.DeliveryModes)); actual.National.Should().BeFalse(); }