예제 #1
0
        public void DeleteSuccessNoPurgeAsync()
        {
            var item = new TestData {
                Id = 3, Value = "A successful object PUT"
            };
            var put = _orchestrate.Put(CollectionName, "3", item);

            var result = _orchestrate.DeleteAsync(CollectionName, "3", false).Result;

            Assert.IsTrue(result.Value == null || result.Value.ToString() == string.Empty);

            var graveyard = _orchestrate.Get(CollectionName, "3", put.Path.Ref.Replace("\"", string.Empty));

            Assert.IsTrue(graveyard.Value != null);
        }