public void FlushDatabase(int database = 0, CommandFlags flags = CommandFlags.None) { try { _redisServer?.FlushDatabase(database, flags); } catch (Exception e) { LogError(e); } }
public void FlushDatabase_RedisServer_ServerMethodCorrect() { Assert.DoesNotThrow(() => _redisServer.FlushDatabase(1)); _serverMock.Verify(x => x.FlushDatabase(1, CommandFlags.None), Times.Once); }