/// <summary> /// Initialises a new instance of the <see cref="SolutionDashboardResult"/> class. /// </summary> public SolutionDashboardResult(ISolution solution) { if (solution != null) { Id = solution.Id; Name = solution.Name; SupplierName = solution.SupplierName; SolutionDashboardSections = new SolutionDashboardSections(solution); } }
/// <summary> /// Initialises a new instance of the <see cref="SolutionDashboardResult"/> class. /// </summary> public SolutionDashboardResult(ISolution solution) { if (solution is null) { throw new ArgumentNullException(nameof(solution)); } Id = solution.Id; Name = solution.Name; SolutionDashboardSections = new SolutionDashboardSections(solution); }