using Core.DomainObjects;

namespace WeatherForecast.Models {

  /// <summary>
  /// 
  /// </summary>
  public class TestimonialModel {

    /// <summary>
    /// 
    /// </summary>
    public string Text { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public ReviewerModel Reviewer { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="testimonial"></param>
    public TestimonialModel(Testimonial testimonial) {
      Text = testimonial.Text;
      Reviewer = new ReviewerModel(testimonial.Reviewer);
    }
  }
}
