示例#1
0
        public static RazorConverterService CreateService()
        {
            var provider = new WebApplicationFactory <Startup>().Services.CreateScope().ServiceProvider;

            return(new RazorConverterService(
                       provider.GetService <IRazorViewEngine>(),
                       A.Fake <ITempDataProvider>(),
                       provider,
                       A.Fake <IHttpContextAccessor>()
                       ));
        }