Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Jan 15, 2024
1 parent ece5d14 commit d6e8072
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using Credfeto.DotNet.Repo.Tools.TemplateUpdate.Interfaces;
using Credfeto.DotNet.Repo.Tools.Build.Interfaces;
using Credfeto.DotNet.Repo.Tools.DotNet.Interfaces;
using Credfeto.DotNet.Repo.Tools.Git.Interfaces;
using Credfeto.DotNet.Repo.Tools.Packages.Interfaces;
using Credfeto.DotNet.Repo.Tools.Release.Interfaces;
using Credfeto.DotNet.Repo.Tools.TemplateUpdate.Interfaces;
using Credfeto.DotNet.Repo.Tracking.Interfaces;
using FunFair.Test.Common;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
Expand All @@ -21,6 +27,15 @@ public void CleanUpBuildMustBeRegistered()

private static IServiceCollection Configure(IServiceCollection services)
{
return services.AddTemplateUpdate();
return services.AddMockedService<IBulkPackageConfigLoader>()
.AddMockedService<IDotNetBuild>()
.AddMockedService<IDotNetSolutionCheck>()
.AddMockedService<IDotNetVersion>()
.AddMockedService<IGitRepositoryFactory>()
.AddMockedService<IGlobalJson>()
.AddMockedService<IReleaseConfigLoader>()
.AddMockedService<IReleaseGeneration>()
.AddMockedService<ITrackingCache>()
.AddTemplateUpdate();
}
}

0 comments on commit d6e8072

Please sign in to comment.