using Core.DomainObjects.PageSections;
using WeatherForecast.Models.Abstractions;

namespace WeatherForecast.Models.PageSections {

  /// <summary>
  /// 
  /// </summary>
  public class TestimonialsSectionModel : PageSectionModelBase<TestimonialsSection> {

    /// <summary>
    /// 
    /// </summary>
    public List<TestimonialModel> Items { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="testimonialsSection"></param>
    public TestimonialsSectionModel(TestimonialsSection testimonialsSection) : base(testimonialsSection) {
      Items = testimonialsSection.Items.Select(x => new TestimonialModel(x)).ToList();
    }
  }
}
