public async Task CreateAndDeleteEndpoint() { var fixture = new Fixture(); var name = fixture.Create <string>().Substring(0, 10); var endpoint = await _vsts.PostAsync(Requests.ServiceEndpoint.Endpoint(_config.Project), new Response.ServiceEndpoint { Name = name, Type = "generic", Url = new Uri("https://localhost"), Authorization = new Response.UsernamePassword("", null) }); endpoint.Name.ShouldBe(name); endpoint.Type.ShouldBe("generic"); endpoint.Url.ToString().ShouldBe("https://localhost/"); await _vsts.DeleteAsync(Requests.ServiceEndpoint.Endpoint(_config.Project, endpoint.Id)); await Task.Delay(TimeSpan.FromSeconds(10)); var deletedEndpoint = await _vsts.GetAsync(Requests.ServiceEndpoint.Endpoint(_config.Project, endpoint.Id)); deletedEndpoint.ShouldBeNull(); }