public object Any(AppendToValue request) { return new AppendToValueResponse { ValueLength = Redis.AppendToValue(request.Key, request.Value) }; }
public void Test_AppendToValue() { SetEntry(TestKey, "Hello"); var request = new AppendToValue { Key = TestKey, Value = ", World!" }; var response = base.Send<AppendToValueResponse>(request, x => x.ResponseStatus); const string expected = "Hello, World!"; Assert.That(response.ValueLength, Is.EqualTo(expected.Length)); var value = GetValue(TestKey); Assert.That(value, Is.EqualTo(expected)); }