public async Task Put_should_store_value_for_key_when_node_owns_partition() { var node = new Node("A", new[] { "A", "B", "C" }); var remote = Substitute.For <IRemoteNodeClient>(); node.UseRemoteNodeClient(remote); await node.PutAsync("foo", JObject.Parse("{'value':'bar'}")); Siblings result = await node.GetAsync("foo"); dynamic document = (result.ToArray()[0].Value); string value = document.value; value.Should().Be("bar"); }