Skip to content

Commit 81997d2

Browse files
committed
Remove corrupted test file and adjust project references
- Deleted `DefaultActivityExecutionMapperTests_Fixed.cs` due to corruption. - Updated project references to include `Elsa.Testing.Shared` for unit tests.
1 parent 2c69299 commit 81997d2

3 files changed

Lines changed: 4 additions & 68 deletions

File tree

test/unit/Elsa.Workflows.Runtime.UnitTests/Elsa.Workflows.Runtime.UnitTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8+
<ProjectReference Include="..\..\..\src\common\Elsa.Testing.Shared\Elsa.Testing.Shared.csproj" />
89
<ProjectReference Include="..\..\..\src\modules\Elsa.Workflows.Runtime\Elsa.Workflows.Runtime.csproj" />
910
</ItemGroup>
1011

test/unit/Elsa.Workflows.Runtime.UnitTests/Services/DefaultActivityExecutionMapperTests.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
using Elsa.Common;
2-
using Elsa.Common.Codecs;
32
using Elsa.Workflows.Management.Options;
4-
using Elsa.Workflows.Runtime;
53
using Microsoft.Extensions.Options;
64
using Moq;
7-
using Xunit;
85
using Elsa.Workflows.Activities;
9-
using Elsa.Workflows;
10-
using Microsoft.Extensions.DependencyInjection;
11-
using System.Collections.Generic;
12-
using System.Threading.Tasks;
136
using Elsa.Testing.Shared;
147
namespace Elsa.Workflows.Runtime.UnitTests.Services;
158
public class DefaultActivityExecutionMapperTests
@@ -18,14 +11,14 @@ public class DefaultActivityExecutionMapperTests
1811
private readonly Mock<IPayloadSerializer> _payloadSerializerMock = new();
1912
private readonly Mock<ICompressionCodecResolver> _compressionCodecResolverMock = new();
2013
private readonly Mock<IOptions<ManagementOptions>> _optionsMock = new();
21-
private readonly DefaultActivityExecutionMapper _sut;
14+
private readonly DefaultActivityExecutionMapper _mapper;
2215

2316
public DefaultActivityExecutionMapperTests()
2417
{
2518
_optionsMock.Setup(x => x.Value).Returns(new ManagementOptions());
2619
_compressionCodecResolverMock.Setup(x => x.Resolve(It.IsAny<string>())).Returns(new Mock<ICompressionCodec>().Object);
2720

28-
_sut = new DefaultActivityExecutionMapper(
21+
_mapper = new(
2922
_safeSerializerMock.Object,
3023
_payloadSerializerMock.Object,
3124
_compressionCodecResolverMock.Object,
@@ -48,7 +41,7 @@ public async Task MapAsync_SetsCallStackDepth_FromContext()
4841
};
4942

5043
// Act
51-
var record = await _sut.MapAsync(contextA);
44+
var record = await _mapper.MapAsync(contextA);
5245

5346
// Assert
5447
Assert.Equal(5, record.CallStackDepth);

test/unit/Elsa.Workflows.Runtime.UnitTests/Services/DefaultActivityExecutionMapperTests_Fixed.cs

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)