public void CreateJobWithoutFirstTask()
        {
            var createJobResponse = new CreateJobResponse();
            createJobResponse.JobId = 2;
            createJobResponse.TaskId = null;

            var workflow = new Workflow(5);
            var retrievedCreateJobResponse = client.CreateJob(workflow);

            Assert.AreEqual(createJobResponse.JobId, retrievedCreateJobResponse.JobId);
            Assert.AreEqual(createJobResponse.TaskId, retrievedCreateJobResponse.TaskId);
        }
        public void CreateJobWithFirstTask()
        {
            restClientMock = new Mock<IRestClient>();
            restClientMock.Setup(x => x.Execute(It.IsAny<IRestRequest>()))
                .Returns(new RestResponse
                {
                    ContentType = "application/json",
                    StatusCode = HttpStatusCode.Created,
                    Content = @"
                    {
                        ""data"": {
                            ""jobId"": 2,
                            ""taskId"": 5
                        }
                    }"
                });
            client = new RelaxoClient(restClientMock.Object);



            var createJobResponse = new CreateJobResponse();
            createJobResponse.JobId = 2;
            createJobResponse.TaskId = 5;

            var workflow = new Workflow(5);
            var retrievedCreateJobResponse = client.CreateJob(workflow);

            Assert.AreEqual(createJobResponse.JobId, retrievedCreateJobResponse.JobId);
            Assert.AreEqual(createJobResponse.TaskId, retrievedCreateJobResponse.TaskId);
        }