using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using MigrationTools.DataContracts;
using MigrationTools.Enrichers;
using MigrationTools.Processors;
using MigrationTools.Tools.Infrastructure;
using MigrationTools.Tools.Interfaces;
using static Microsoft.VisualStudio.Services.Graph.GraphResourceIds.Users;

namespace MigrationTools.Tools
{
    /// <summary>
    /// Used to process the String fields of a work item. This is useful for cleaning up data. It will limit fields to a max length and apply regex replacements based on what is configured. Each regex replacement is applied in order and can be enabled or disabled.
    /// </summary>
    public class WorkItemTypeMappingTool : Tool<WorkItemTypeMappingToolOptions>, IWorkItemTypeMappingTool
    {
        public Dictionary<string, string> Mappings { get; private set; }

        public WorkItemTypeMappingTool(IOptions<WorkItemTypeMappingToolOptions> options, IServiceProvider services, ILogger<WorkItemTypeMappingTool> logger, ITelemetryLogger telemetryLogger)
           : base(options, services, logger, telemetryLogger)
        {
            Mappings = Options.Mappings;
        }

    }

}

