public async Task ConfigSetAsync(string key, string value, CommandFlags flags = CommandFlags.None) { try { if (_redisServer != null) { await _redisServer.ConfigSetAsync(key, value) .ConfigureAwait(false); } } catch (Exception e) { LogError(e); } }
public async Task ConfigSetAsync_RedisServer_ServerMethodCalledCorrectly() { await _redisServer.ConfigSetAsync("key", "value"); _serverMock.Verify(x => x.ConfigSetAsync("key", "value", CommandFlags.None), Times.Once); }