public static TestConnectionMultiplexer CreateConnection <T>(T testDb, T testBatch = null, Func <bool> throwConnectionExceptionOnGet = null) where T : class, ITestRedisDatabase { var mockDb = CreateRedisDatabase(testDb, testBatch); var mockConn = new TestConnectionMultiplexer(mockDb, throwConnectionExceptionOnGet); return(mockConn); }
public static IConnectionMultiplexer CreateConnection <T>(T testDb, T testBatch = null) where T : class, ITestRedisDatabase { var mockDb = CreateRedisDatabase(testDb, testBatch); var mockConn = new TestConnectionMultiplexer(mockDb); return(mockConn); }