using System.Collections.Generic;
using MigrationTools.Tools.Infrastructure;

namespace MigrationTools.Tools
{
    /// <summary>
    /// Ever wanted to merge two or three fields? This mapping will let you do just that.
    /// </summary>
    /// <status>ready</status>
    /// <processingtarget>Work Item Field</processingtarget>
    public class FieldMergeMapOptions : FieldMapOptions
    {
        public List<string> sourceFields { get; set; }
        public string targetField { get; set; }
        public string formatExpression { get; set; }

        public void SetExampleConfigDefaults()
        {
            ApplyTo = new List<string> { "System.Title" };
            sourceFields = new List<string>
            {
                "System.Description",
                "System.Status"
            };
            targetField = "System.Description";
            formatExpression = "{0} \n {1}";

        }
    }
}