32 строки
935 B
C#
32 строки
935 B
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System;
|
|
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using Clockwise;
|
|
using WorkspaceServer.Packaging;
|
|
|
|
namespace WorkspaceServer.Tests
|
|
{
|
|
public class TestPackageInitializer : PackageInitializer
|
|
{
|
|
public int InitializeCount { get; private set; }
|
|
|
|
public TestPackageInitializer(
|
|
string template,
|
|
string projectName,
|
|
string language = null,
|
|
Func<DirectoryInfo, Budget, Task> afterCreate = null) :
|
|
base(template, projectName, language, afterCreate)
|
|
{
|
|
}
|
|
|
|
public override Task Initialize(DirectoryInfo directory, Budget budget = null)
|
|
{
|
|
InitializeCount++;
|
|
return base.Initialize(directory, budget);
|
|
}
|
|
}
|
|
}
|