コード例 #1
0
        public void create_agile_run()
        {
            string packageId = GetSingleExecutionPackageId();

            AgileRun run = client.CreateAgileRun(new CreateOrUpdateAgileRun {
                PackageId = packageId, Name = "My Agile Run"
            });

            Assert.Equal("My Agile Run", run.Name);
            Assert.NotEqual(Guid.Empty.ToString(), run.Id);
        }
コード例 #2
0
        public void delete_agile_run_then_do_get_for_deleted_run_returns404()
        {
            string packageId = GetSingleExecutionPackageId();

            AgileRun run = client.CreateAgileRun(new CreateOrUpdateAgileRun {
                PackageId = packageId, Name = "My Agile Run"
            });

            client.DeleteAgileRun(run.Id);

            Assert.Throws <HttpRequestException>(() => client.GetAgileRun(run.Id));
        }
コード例 #3
0
        public void update_agile_run()
        {
            string packageId = GetSingleExecutionPackageId();

            AgileRun run = client.CreateAgileRun(new CreateOrUpdateAgileRun {
                PackageId = packageId, Name = "My Agile Run"
            });

            AgileRun updatedRun = client.UpdateAgileRun(run.Id, new CreateOrUpdateAgileRun {
                Name = "Updated name"
            });

            Assert.Equal("Updated name", updatedRun.Name);
        }