예제 #1
0
        public void Constructor_WorkflowConfigDoesntExist_RetursFalse()
        {
            var workflow = new WorkflowConfig("a", null);
            var runner   = new DaprWorkflowExecutor(new List <WorkflowConfig>()
            {
                workflow
            }, null);
            var exists = runner.WorkflowExists("b");

            Assert.False(exists);
        }
예제 #2
0
        public void Constructor_WorkflowConfigExists_ReturnsTrue()
        {
            var workflow = new WorkflowConfig("a", null);
            var runner   = new DaprWorkflowExecutor(new List <WorkflowConfig>()
            {
                workflow
            }, null);
            var exists = runner.WorkflowExists("a");

            Assert.True(exists);
        }