public void MergeAsStringAsync() { var match = _orchestrate.Get(CollectionName, "1"); var item = new MergeTestData { NewValue = "This is a merged value" }; var settings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }; var json = JsonConvert.SerializeObject(item, settings); var result = _orchestrate.PatchAsync(CollectionName, match.Path.Key, json).Result; Assert.IsTrue(result.Path.Ref.Length > 0); }
public void MergeAsObjectAsync() { var match = _orchestrate.Get(CollectionName, "1"); var item = new MergeTestData { NewValue = "This is a merged value" }; var result = _orchestrate.PatchAsync(CollectionName, match.Path.Key, item).Result; Assert.IsTrue(result.Path.Ref.Length > 0); }