Пример #1
0
        public void Then_Empty_Object_Returned_If_Null(GetVacanciesListItem source)
        {
            source.Address = null;

            var actual = (GetVacancyAddressItem)source;

            actual.Should().BeEquivalentTo(new GetVacancyAddressItem());
        }
        public void Then_The_Values_Are_Mapped(GetVacanciesListItem source)
        {
            var actual = (GetVacancyCourseItem)source;

            actual.Title.Should().Be($"{source.CourseTitle} (level {source.CourseLevel})");
            actual.Level.Should().Be(source.CourseLevel);
            actual.Route.Should().Be(source.Route);
            actual.LarsCode.Should().Be(source.StandardLarsCode);
        }
        public void Then_If_Course_Is_Null_Then_Not_Mapped(GetVacanciesListItem source)
        {
            source.StandardLarsCode = null;

            var actual = (GetVacancyCourseItem)source;

            actual.Title.Should().BeNullOrEmpty();
            actual.Route.Should().BeNullOrEmpty();
            actual.Level.Should().Be(0);
            actual.LarsCode.Should().Be(0);
        }
        public void Then_The_Values_Are_Mapped(GetVacanciesListItem source)
        {
            var actual = (GetVacancyWageItem)source;

            actual.WageAmount.Should().Be(source.WageAmount);
            actual.WageType.Should().Be((WageType)source.WageType);
            actual.WageAdditionalInformation.Should().Be(source.WageText);
            actual.WageAmountUpperBound.Should().Be(source.WageAmountUpperBound);
            actual.WageAmountLowerBound.Should().Be(source.WageAmountLowerBound);
            actual.WorkingWeekDescription.Should().Be(source.WorkingWeek);
        }
Пример #5
0
        public void Then_The_Values_Are_Mapped(GetVacanciesListItem source)
        {
            var actual = (GetVacancyAddressItem)source;

            actual.Should().BeEquivalentTo(source.Address);
        }