public virtual ApiRateResponseModel MapBOToModel( BORate boRate) { var model = new ApiRateResponseModel(); model.SetProperties(boRate.Id, boRate.AmountPerMinute, boRate.TeacherId, boRate.TeacherSkillId); return(model); }
public void MapResponseToRequest() { var mapper = new ApiRateModelMapper(); var model = new ApiRateResponseModel(); model.SetProperties(1, 1m, 1, 1); ApiRateRequestModel response = mapper.MapResponseToRequest(model); response.AmountPerMinute.Should().Be(1m); response.TeacherId.Should().Be(1); response.TeacherSkillId.Should().Be(1); }