Can't setup mocked Redis IDatabase using Moq
This is my test for my cache in program: [Fact] public async Task Cache_Works_Correctly() { const string testkey = "69"; const string testvalue = "Nice"; var mockDatabase = new Mock<IDatabase>(); mockDatabase.Setup<string>(_ => _.StringGet(CacheConstants.NamePrefix + testkey, CommandFlags.None)).Returns(testvalue); var mockMultiplexer = new…