diff --git a/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj b/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj index 05ea5bd2..32da0c92 100644 --- a/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj +++ b/src/AzureDataFactory.TestingFramework/AzureDataFactory.TestingFramework.csproj @@ -16,7 +16,7 @@ AzureDataFactory.TestingFramework - 0.1.1-alpha + 0.1.2-alpha arjendev true diff --git a/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs b/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs index b4ffaedb..68854278 100644 --- a/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs +++ b/src/AzureDataFactory.TestingFramework/Expressions/ActivityExpression.cs @@ -19,7 +19,7 @@ public ActivityExpression(string expression) : base(expression) public TType Evaluate(PipelineRunState state) { var (activityName, fields) = GetActivityNameAndFields(); - var activity = state.PipelineActivityResults.SingleOrDefault(x => x.Name == activityName) ?? + var activity = state.PipelineActivityResults.SingleOrDefault(x => string.Equals(x.Name, activityName, StringComparison.CurrentCultureIgnoreCase)) ?? throw new ActivityNotFoundException(activityName); if (activity.Status == null) throw new ActivityNotEvaluatedException(activity.Name); diff --git a/src/AzureDataFactory.TestingFramework/Functions/FunctionsRepository.cs b/src/AzureDataFactory.TestingFramework/Functions/FunctionsRepository.cs index ea987a2e..7a715bf2 100644 --- a/src/AzureDataFactory.TestingFramework/Functions/FunctionsRepository.cs +++ b/src/AzureDataFactory.TestingFramework/Functions/FunctionsRepository.cs @@ -37,7 +37,7 @@ private static string Trim(string text, string trimArgument) return text.Trim(trimArgument[0]); } - private static object Json(object argument) + private static string Json(string argument) { return argument; }