public void MapEFToBOList() { var mapper = new DALRateMapper(); Rate entity = new Rate(); entity.SetProperties(1m, 1, 1, 1); List <BORate> response = mapper.MapEFToBO(new List <Rate>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALRateMapper(); Rate entity = new Rate(); entity.SetProperties(1m, 1, 1, 1); BORate response = mapper.MapEFToBO(entity); response.AmountPerMinute.Should().Be(1m); response.Id.Should().Be(1); response.TeacherId.Should().Be(1); response.TeacherSkillId.Should().Be(1); }