Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Sep 10, 2023
1 parent 7061d3c commit 10ef472
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ private void RegisterExternals(Container container)
{
container.RegisterSingleton(A.Dummy<IRepositoryExpressionEvaluator>);
container.RegisterSingleton(A.Dummy<IActionToRepositoryActionMapper>);
container.RegisterSingleton(A.Dummy<ITranslationService>);
container.RegisterInstance(_appSettingsService);
container.RegisterSingleton(A.Dummy<ILogger>);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace RepoM.Plugin.Clipboard.Tests.ActionProvider;
using System.Threading.Tasks;
using FakeItEasy;
using FluentAssertions;
using RepoM.Api.Common;
using RepoM.Api.IO.ModuleBasedRepositoryActionProvider;
using RepoM.Api.IO.ModuleBasedRepositoryActionProvider.ActionMappers;
using RepoM.Core.Plugin.Expressions;
Expand Down Expand Up @@ -34,7 +33,6 @@ public ActionClipboardCopyV1MapperTests()
_actionMapperComposition = new ActionMapperComposition(new List<IActionToRepositoryActionMapper>(), A.Dummy<IRepositoryExpressionEvaluator>());
_repository = new Repository("dummy");
IRepositoryExpressionEvaluator expressionEvaluator = A.Fake<IRepositoryExpressionEvaluator>();
ITranslationService translationService = A.Fake<ITranslationService>();

_sut = new ActionClipboardCopyV1Mapper(expressionEvaluator);

Expand All @@ -56,8 +54,6 @@ public ActionClipboardCopyV1MapperTests()

throw new Exception("Thrown by test, Not expected");
});
A.CallTo(() => translationService.Translate(A<string>._)).ReturnsLazily(call => call.Arguments[0] as string ?? "unexpected by test.");
A.CallTo(() => translationService.Translate(A<string>._, A<object[]>._)).ReturnsLazily(call => call.Arguments[0] as string ?? "unexpected by test.");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public void RegisterServices_ShouldFail_WhenExternalDependenciesAreNotRegistered
private static void RegisterExternals(Container container)
{
container.RegisterSingleton(A.Dummy<IRepositoryExpressionEvaluator>);
container.RegisterSingleton(A.Dummy<ITranslationService>);
}
}

Expand Down
2 changes: 0 additions & 2 deletions tests/RepoM.Plugin.Heidi.Tests/HeidiPackageTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace RepoM.Plugin.Heidi.Tests;
using System.Threading.Tasks;
using FakeItEasy;
using Microsoft.Extensions.Logging;
using RepoM.Api.Common;
using RepoM.Api.IO.ModuleBasedRepositoryActionProvider;
using RepoM.Core.Plugin;
using RepoM.Core.Plugin.Expressions;
Expand Down Expand Up @@ -107,6 +106,5 @@ private static void RegisterExternals(Container container)
container.RegisterSingleton(A.Dummy<ILogger>);
container.RegisterSingleton(A.Dummy<IFileSystem>);
container.RegisterSingleton(A.Dummy<IRepositoryExpressionEvaluator>);
container.RegisterSingleton(A.Dummy<ITranslationService>);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ private void RegisterExternals(Container container)
{
container.RegisterInstance(_appSettingsService);
container.RegisterSingleton(A.Dummy<IRepositoryExpressionEvaluator>);
container.RegisterSingleton(A.Dummy<ITranslationService>);
}
}

0 comments on commit 10ef472

Please sign in to comment.