public void Finds_request_type()
        {
            var cache = new MethodMatchEvaluationCache();

            var evaluation = new MethodMatchEvaluation(typeof(SomeRequest), null, Array.Empty <MethodInfo>());

            _ = cache.TryAdd(evaluation);

            bool found = cache.TryFindEvaluation(typeof(SomeRequest), out var cached);

            Assert.True(found);
            Assert.Same(evaluation, cached);
        }
        public void Error_if_response_type_is_null_when_searching()
        {
            var cache = new MethodMatchEvaluationCache();

            Assert.Throws <ArgumentNullException>(() => cache.TryFindEvaluation(typeof(SomeRequest), null !, out _));
        }