Example #1
0
        public void Then_The_Fields_Are_Correctly_Mapped(GetEmployerCourseProviderDemandResponse source)
        {
            //Act
            var actual = (GetProviderEmployerDemandDetailsListItem)source;

            //Assert
            actual.Should().BeEquivalentTo(source, options => options.Excluding(c => c.Location.LocationPoint));
            actual.Location.Location.GeoPoint.ToList().Should().BeEquivalentTo(source.Location.LocationPoint.GeoPoint);
        }
Example #2
0
        public void Then_Null_Returned_If_No_Location(GetEmployerCourseProviderDemandResponse source)
        {
            //Arrange
            source.Location = null;
            //Act
            var actual = (GetProviderEmployerDemandDetailsListItem)source;

            //Assert
            actual.Should().BeEquivalentTo(source, options => options.Excluding(c => c.Location));
            actual.Location.Should().BeNull();
        }