forked from microsoft/TemplateStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFakeContextProvider.cs
More file actions
33 lines (23 loc) · 1.25 KB
/
FakeContextProvider.cs
File metadata and controls
33 lines (23 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using Microsoft.Templates.Core;
using Microsoft.Templates.Core.Diagnostics;
using Microsoft.Templates.Core.Gen;
using Microsoft.Templates.Core.PostActions.Catalog.Merge;
namespace Microsoft.Templates.Fakes
{
public class FakeContextProvider : IContextProvider
{
public string ProjectName { get; set; }
public string SafeProjectName => ProjectName.MakeSafeProjectName();
public string GenerationOutputPath { get; set; }
public string DestinationPath { get; set; }
public ProjectInfo ProjectInfo { get; set; } = new ProjectInfo();
public List<string> FilesToOpen { get; } = new List<string>();
public List<FailedMergePostActionInfo> FailedMergePostActions { get; } = new List<FailedMergePostActionInfo>();
public Dictionary<string, List<MergeInfo>> MergeFilesFromProject { get; } = new Dictionary<string, List<MergeInfo>>();
public Dictionary<ProjectMetricsEnum, double> ProjectMetrics { get; } = new Dictionary<ProjectMetricsEnum, double>();
}
}