Example #1
0
		public void LiveGetFolderTest()
		{
			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);
			var getFolder = cc.GetLibraryFolder(newFolder.Id);

            Assert.IsNotNull(getFolder);
			Assert.AreEqual(getFolder.Id, newFolder.Id);
			Assert.AreEqual(getFolder.Name, newFolder.Name);
		}