public void MapModelToBO() { var mapper = new BOLStudentXFamilyMapper(); ApiStudentXFamilyRequestModel model = new ApiStudentXFamilyRequestModel(); model.SetProperties(1, 1); BOStudentXFamily response = mapper.MapModelToBO(1, model); response.FamilyId.Should().Be(1); response.StudentId.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLStudentXFamilyMapper(); BOStudentXFamily bo = new BOStudentXFamily(); bo.SetProperties(1, 1, 1); ApiStudentXFamilyResponseModel response = mapper.MapBOToModel(bo); response.FamilyId.Should().Be(1); response.Id.Should().Be(1); response.StudentId.Should().Be(1); }
public void MapBOToModelList() { var mapper = new BOLStudentXFamilyMapper(); BOStudentXFamily bo = new BOStudentXFamily(); bo.SetProperties(1, 1, 1); List <ApiStudentXFamilyResponseModel> response = mapper.MapBOToModel(new List <BOStudentXFamily>() { { bo } }); response.Count.Should().Be(1); }