コード例 #1
0
        public async Task Execute_ReturnsAppRelativePath_WhenItStartsWithTilde(
            string appRoot,
            string contentPath,
            string expectedPath)
        {
            var action =
                new Func <RedirectResult, ActionContext, Task>(async(result, context) => await result.ExecuteResultAsync(context));

            await BaseRedirectResultTest.Execute_ReturnsAppRelativePath_WhenItStartsWithTilde(
                appRoot,
                contentPath,
                expectedPath,
                action);
        }
コード例 #2
0
        public async Task Execute_ReturnsContentPath_WhenItDoesNotStartWithTilde(
            string appRoot,
            string contentPath,
            string expectedPath)
        {
            var action
                = new Func <RedirectResult, HttpContext, Task>(async(result, context) => await((IResult)result).ExecuteAsync(context));

            await BaseRedirectResultTest.Execute_ReturnsContentPath_WhenItDoesNotStartWithTilde(
                appRoot,
                contentPath,
                expectedPath,
                action);
        }