Skip to content

Commit d4d385d

Browse files
Copilotdanielgerlag
andcommitted
Fix build issue: Update test to use FakeItEasy mock for IWorkflowRegistry
Co-authored-by: danielgerlag <2357007+danielgerlag@users.noreply.github.com>
1 parent 7d6ac78 commit d4d385d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/WorkflowCore.UnitTests/Services/DefinitionStorage/YamlInheritedPropertyIntegrationTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
2+
using FakeItEasy;
33
using WorkflowCore.Interface;
44
using WorkflowCore.Services.DefinitionStorage;
55
using Xunit;
@@ -16,7 +16,7 @@ public class YamlInheritedPropertyIntegrationTest
1616
public void ShouldBindInheritedPropertiesInYamlDefinition()
1717
{
1818
// Arrange
19-
var registry = new WorkflowRegistry();
19+
var registry = A.Fake<IWorkflowRegistry>();
2020
var loader = new DefinitionLoader(registry, new TypeResolver());
2121

2222
// This YAML definition uses a custom step (IterateListStep) that inherits from Foreach
@@ -48,7 +48,7 @@ public void ShouldBindInheritedPropertiesInYamlDefinition()
4848
public void ShouldStillThrowForUnknownProperties()
4949
{
5050
// Arrange
51-
var registry = new WorkflowRegistry();
51+
var registry = A.Fake<IWorkflowRegistry>();
5252
var loader = new DefinitionLoader(registry, new TypeResolver());
5353

5454
var yamlWithUnknownProperty = @"

0 commit comments

Comments
 (0)