public async Task GivenCancelImportRequest_WhenInitialImportModeEnabled_Then200ShouldBeReturned()
        {
            InitialImportLockMiddleware middleware = CreateInitialImportLockMiddleware(new ImportTaskConfiguration()
            {
                Enabled = false, InitialImportMode = true
            });
            HttpContext httpContext = new DefaultHttpContext();

            httpContext.Request.Path   = "/_operations/import/abc";
            httpContext.Request.Method = HttpMethods.Delete.ToString();
            await middleware.Invoke(httpContext);

            Assert.Equal(200, httpContext.Response.StatusCode);
        }
        public async Task GivenCustomErrorRequest_WhenInitialImportModeEnabled_Then423ShouldNotBeReturned()
        {
            InitialImportLockMiddleware middleware = CreateInitialImportLockMiddleware(new ImportTaskConfiguration()
            {
                Enabled = true, InitialImportMode = true
            });
            HttpContext httpContext = new DefaultHttpContext();

            httpContext.Request.Path   = "/CustomError";
            httpContext.Request.Method = HttpMethods.Post.ToString();
            await middleware.Invoke(httpContext);

            Assert.Equal(200, httpContext.Response.StatusCode);
        }