示例#1
0
        public async Task ChildWorkflow()
        {
            await SyncContext.Clear;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.ChildWorkflow));
        }
示例#2
0
        public async Task LocalActivity()
        {
            await SyncContext.Clear;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.LocalActivity));
        }
示例#3
0
        public async Task GetIsSetLastCompletionResult()
        {
            await SyncContext.Clear;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.GetIsSetLastCompletionResult));
        }
示例#4
0
        public async Task NextRandomMinMax()
        {
            await SyncContext.Clear;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.NextRandomMinMax));
        }
示例#5
0
        public async Task SideEffectGeneric()
        {
            await SyncContext.Clear;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.SideEffectGeneric));
        }
示例#6
0
        public async Task MutableSideEffect()
        {
            await SyncContext.ClearAsync;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.MutableSideEffect));
        }
示例#7
0
        public async Task WorkflowExecution()
        {
            await SyncContext.ClearAsync;

            WorkflowReplay.Reset();

            var stub = client.NewWorkflowStub <IWorkflowReplay>();

            Assert.True(await stub.RunAsync(ReplayTest.WorkflowExecution));
        }