Skip to content

Commit

Permalink
CON-1721-fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
shomavg committed Apr 29, 2020
1 parent c40ac97 commit ad5e819
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Threading.Tasks;
using FluentAssertions;
using Moq;
using NServiceBus.Logging;
using NUnit.Framework;
using SFA.DAS.CosmosDb.Testing;
using SFA.DAS.EmployerAccounts.ReadStore.Application.Commands;
Expand All @@ -14,6 +13,7 @@
using SFA.DAS.EmployerAccounts.Types.Models;
using SFA.DAS.Testing;
using SFA.DAS.Testing.Builders;
using Microsoft.Extensions.Logging;

namespace SFA.DAS.EmployerAccounts.ReadStore.UnitTests.Commands
{
Expand Down Expand Up @@ -118,7 +118,7 @@ public CreateAccountUserCommandHandlerTestsFixture()
UserRolesRepository = new Mock<IAccountUsersRepository>();
UserRolesRepository.SetupInMemoryCollection(Users);

Handler = new CreateAccountUserCommandHandler(UserRolesRepository.Object, Mock.Of<ILog>());
Handler = new CreateAccountUserCommandHandler(UserRolesRepository.Object, Mock.Of<ILogger>());

Command = new CreateAccountUserCommand(AccountId, UserRef, NewRole, MessageId, Created);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus.Logging;
using Microsoft.Extensions.Logging;
using SFA.DAS.CosmosDb;
using SFA.DAS.EmployerAccounts.ReadStore.Data;
using SFA.DAS.EmployerAccounts.ReadStore.Exceptions;
Expand All @@ -13,9 +12,9 @@ namespace SFA.DAS.EmployerAccounts.ReadStore.Application.Commands
internal class CreateAccountUserCommandHandler : IReadStoreRequestHandler<CreateAccountUserCommand, Unit>
{
private readonly IAccountUsersRepository _accountUsersRepository;
private readonly ILog _logger;
private readonly ILogger _logger;

public CreateAccountUserCommandHandler(IAccountUsersRepository accountUsersRepository, ILog logger)
public CreateAccountUserCommandHandler(IAccountUsersRepository accountUsersRepository, ILogger logger)
{
_accountUsersRepository = accountUsersRepository;
_logger = logger;
Expand All @@ -40,7 +39,7 @@ public async Task<Unit> Handle(CreateAccountUserCommand request, CancellationTok
}
catch (UserNotRemovedException exception)
{
_logger.Warn("User has not been removed",exception);
_logger.LogWarning("User has not been removed", exception);
}
return Unit.Value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19270-01" PrivateAssets="All" />
<PackageReference Include="SFA.DAS.CosmosDb" Version="1.0.47" />
<PackageReference Include="StructureMap" Version="4.6.1" />
Expand Down Expand Up @@ -52,11 +53,4 @@
<_Parameter1>SFA.DAS.EmployerAccounts.MessageHandlers.UnitTests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<ItemGroup>
<Reference Include="NServiceBus.Core">
<HintPath>..\..\..\..\..\..\..\Users\Shoma.Gujjar\.nuget\packages\nservicebus\7.0.1\lib\net452\NServiceBus.Core.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
</Project>

0 comments on commit ad5e819

Please sign in to comment.