public void ShouldMap()
        {
            Setup();

            var model = new CreateSectionModelBuilder().Build();
            var entity = new CreateModelToCourseOfferingMapper(_schoolRepository, _genericRepository).Build(model);

            entity.EducationOrganizationId.ShouldBe(Constants.EducationOrganizationId);
            entity.SchoolId.ShouldBe(Constants.SchoolId);
            entity.LocalCourseCode.ShouldBe(model.Course);
            entity.SchoolYear.ShouldBe(_session.SchoolYear);
            entity.TermTypeId.ShouldBe(_session.TermTypeId);
        }
Beispiel #2
0
        public void ShouldMap()
        {
            Setup();

            var model  = new CreateSectionModelBuilder().Build();
            var entity = new CreateModelToCourseOfferingMapper(_schoolRepository, _genericRepository).Build(model);

            entity.EducationOrganizationId.ShouldBe(Constants.EducationOrganizationId);
            entity.SchoolId.ShouldBe(Constants.SchoolId);
            entity.LocalCourseCode.ShouldBe(model.Course);
            entity.SchoolYear.ShouldBe(_session.SchoolYear);
            entity.TermTypeId.ShouldBe(_session.TermTypeId);
        }