public void Delete() { var dto = new CreateExternalPageDto { Name = "My site", Url = "https://www.mysite.com" }; var externalPageId = Api.ExternalPages .Create(dto).Fetch().Result; var result = Api.ExternalPages. Delete(externalPageId).Fetch().Result; Assert.True(result); }
public void Create(string name, string url) { var dto = new CreateExternalPageDto { Name = name, Url = url }; var externalPageId = Api.ExternalPages .Create(dto).Fetch().Result; var externalPage = Api.ExternalPages .Get(externalPageId).Fetch().Result; Assert.That(externalPage.Id, Is.EqualTo(externalPageId)); Assert.That(externalPage.Name, Is.EqualTo(name)); Assert.That(externalPage.Url, Is.EqualTo(url)); }
public PostRequest<CreateExternalPageDto, string> Create(CreateExternalPageDto dto) { return new PostRequest<CreateExternalPageDto, string>(m_service, dto); }