public void ShouldMapClassPeriodToClassPeriodListItemModel() { var entity = new ParentCourseBuilder().Build(); var model = new ParentCourseToParentCourseListItemModelMapper().Build(entity); model.ParentCourseId.ShouldBe(entity.Id); model.ParentCourseTitle.ShouldBe(entity.ParentCourseCode + " - " + entity.ParentCourseTitle); }
public void ShouldMapClassPeriodToClassPeriodListItemModel() { var entity = new ParentCourseBuilder().Build(); var model = new ParentCourseToParentCourseListItemModelMapper().Build(entity); model.ParentCourseId.ShouldBe(entity.Id); model.ParentCourseTitle.ShouldBe(entity.ParentCourseCode + " - " + entity.ParentCourseTitle); }