public void Should_cache_logs() { innerData.Log("1") .Returns(Substitute.For <Log>()); var log1 = cache.Log("1"); var log2 = cache.Log("1"); Assert.True(log1 == log2); innerData.Received(1) .Log(Arg.Is <string>(x => x == "1")); innerData.DidNotReceive() .Log(Arg.Is <string>(x => x != "1")); }
static void GetLog(IVcsData vcsData) { var r0 = "6c9de40fbcd0dbc62bffce68a82d170d62bb0df0"; var log = vcsData.Log(r0); }