public static void AddServices(IServiceCollection services)
        {
            var context = new OperationInvokerTestContext();

            services.AddSingleton(context);
            services.AddSingleton <IOpenApiConfiguration, OpenApiConfiguration>();
            services.AddSingleton(context.OperationLocator.Object);
            services.AddSingleton <IOpenApiAccessChecker>(new AccessChecker(context));
            services.AddSingleton(context.ExceptionMapper.Object);
            services.AddSingleton(context.ResultBuilder.Object);
            services.AddSingleton(context.ParameterBuilder.Object);
            services.AddSingleton(new Mock <IAuditContext>().Object);
            services.AddSingleton <OpenApiOperationInvoker <object, object> >();
        }
 public AccessChecker(OperationInvokerTestContext context)
 {
     this.context = context;
 }