public void GetAllStepsTest()
        {
            InitData();
            steps.Add(step1);

            StepDaoMock.Setup(f => f.GetAllStep()).Returns(steps);

            StepService impl = new StepService(StepDaoMock.Object, WorkflowDaoMock.Object, InstanceDaoMock.Object);

            stepView = impl.GetAllSteps();

            Assert.AreEqual(1, stepView.GetData().Count);
            Assert.AreEqual(SUCCESS, stepView.StatusCode);
        }
        public void GetStepsByWorkflowIdTest()
        {
            InitData();
            steps.Add(step1);
            StepDaoMock.Setup(f => f.GetStepsByWorkflowId(step1.Id)).Returns(steps);

            StepService impl = new StepService(StepDaoMock.Object, WorkflowDaoMock.Object, InstanceDaoMock.Object);

            stepView = impl.GetStepsByWorkflowId(step4);
            Assert.AreEqual(FAILTURE, stepView.StatusCode);

            stepView = impl.GetStepsByWorkflowId(step1);
            foreach (Step step in stepView.GetData())
            {
                Assert.AreEqual(step.Id, step1.Id);
            }

            Assert.AreEqual(SUCCESS, stepView.StatusCode);
        }