using Elsa.Common;
using Elsa.Testing.Shared;
using Elsa.Workflows.Activities;
using Elsa.Workflows.Management.Options;
using Microsoft.Extensions.Options;
using NSubstitute;
namespace Elsa.Workflows.Runtime.UnitTests.Services;
///
/// Unit tests for DefaultActivityExecutionMapper.
///
public class DefaultActivityExecutionMapperTests
{
///
/// Tests that the mapper correctly maps CallStackDepth, SchedulingActivityExecutionId,
/// and SchedulingActivityId from the ActivityExecutionContext to the record.
///
[Fact]
public async Task MapAsync_MapsCallStackDepth_Correctly()
{
// Arrange
var safeSerializer = Substitute.For();
safeSerializer.Serialize(Arg.Any