diff --git a/examples/AI/ConversationalAI/Properties/launchSettings.json b/examples/AI/ConversationalAI/Properties/launchSettings.json new file mode 100644 index 000000000..040a51ff5 --- /dev/null +++ b/examples/AI/ConversationalAI/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "ConversationalAI": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:62602;http://localhost:62603" + } + } +} \ No newline at end of file diff --git a/examples/Client/PublishSubscribe/StreamingSubscriptionExample/Properties/launchSettings.json b/examples/Client/PublishSubscribe/StreamingSubscriptionExample/Properties/launchSettings.json new file mode 100644 index 000000000..859475e5f --- /dev/null +++ b/examples/Client/PublishSubscribe/StreamingSubscriptionExample/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "StreamingSubscriptionExample": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:62604;http://localhost:62605" + } + } +} \ No newline at end of file diff --git a/test/Dapr.Workflow.Test/WorkflowActivityTest.cs b/test/Dapr.Workflow.Test/WorkflowActivityTest.cs index 9fd96e60b..f6be41fc7 100644 --- a/test/Dapr.Workflow.Test/WorkflowActivityTest.cs +++ b/test/Dapr.Workflow.Test/WorkflowActivityTest.cs @@ -16,6 +16,7 @@ namespace Dapr.Workflow.Test using Moq; using System.Threading.Tasks; using Xunit; + using Xunit.Sdk; /// /// Contains tests for WorkflowActivityContext. @@ -26,15 +27,18 @@ public class WorkflowActivityTest private Mock workflowActivityContextMock; - [Fact] - public async Task RunAsync_ShouldReturnCorrectContextInstanceId() + public WorkflowActivityTest() { this.workflowActivity = new TestDaprWorkflowActivity(); this.workflowActivityContextMock = new Mock(); + } + [Fact] + public async Task RunAsync_ShouldReturnCorrectContextInstanceId() + { this.workflowActivityContextMock.Setup((x) => x.InstanceId).Returns("instanceId"); - string result = (string) await this.workflowActivity.RunAsync(this.workflowActivityContextMock.Object, "input"); + string result = (string) (await this.workflowActivity.RunAsync(this.workflowActivityContextMock.Object, "input"))!; Assert.Equal("instanceId", result); }