public override void ConfigureServices(IServiceCollection services)
        {
            base.ConfigureServices(services);

            services.AddDotnetTool();

            services.AddSingleton <IFileService, FileService>();

            var dotnetTool = DotNetToolFactory.Create();

            services.AddDotnetTool();
            services.AddSingleton <IDotNetTool>(dotnetTool);
            services.AddSingletonOption <DotnetToolBuilderSettings>(Configuration);
            services.AddSingletonOption <FileSettings>(Configuration);
        }
Beispiel #2
0
 public static async Task Cleanup()
 {
     var dotnetTool = DotNetToolFactory.Create();
     await dotnetTool.UninstallAsync("dotnettool.builder", "9.0.0");
 }
Beispiel #3
0
 public static async Task ClassInitialize(TestContext context)
 {
     var dotnetTool = DotNetToolFactory.Create();
     await dotnetTool.InstallAsync("dotnettool.builder", "9.0.0");
 }