public void Should_return_404_if_step_does_not_exist_when_trying_to_delete()
        {
            var unitOfWork = A.Fake <IUnitOfWork>();

            A.CallTo(() => unitOfWork.FlowTemplateSteps.Get(A <int> ._)).Returns(null);
            var sut = new FlowTemplateStepsController(unitOfWork);

            SetupController(sut, "http://example.com/api/FlowTemplates/1/Steps", HttpMethod.Delete);

            var response = sut.Delete(3, 3);

            Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
            Assert.Equal(null, response.Content);
        }
        public void Should_return_200_if_step_is_deleted()
        {
            var unitOfWork = A.Fake <IUnitOfWork>();

            A.CallTo(() => unitOfWork.FlowTemplateSteps.Get())
            .Returns(new List <IFlowTemplateStep> {
                new FlowTemplateStep {
                    Id = 3, FlowTemplateId = 3, StepTypeId = 1
                }
            });
            var sut = new FlowTemplateStepsController(unitOfWork);

            SetupController(sut, "http://example.com/api/FlowTemplates/1/Steps", HttpMethod.Delete);

            var response = sut.Delete(3, 3);

            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
            Assert.Equal(null, response.Content);
        }