Ejemplo n.º 1
0
		public void LiveDeleteFolderTest()
		{
			var cc = new ConstantContact(ApiKey, AccessToken);

            var folder = new MyLibraryFolder();
			folder.Id = Guid.NewGuid().ToString();
			folder.Name = Guid.NewGuid().ToString();
			folder.CreatedDate = Extensions.ToISO8601String(DateTime.Now);
            folder.ModifiedDate = Extensions.ToISO8601String(DateTime.Now);

			var newFolder = cc.AddLibraryFolder(folder);
			bool result = cc.DeleteLibraryFolder(newFolder.Id);
			Assert.IsTrue(result);
		}