示例#1
0
        public static async Task <StandardResponse <int> > WithControllerUsingService()
        {
            var passport = new Passport(_storage);

            var controllerUsingService = new ControllerUsingService(passport, new Service());

            //controllerUsingService.Calculate("2", 10, "/", 2);
            return(await controllerUsingService.Calculate("2", 10, "/", 5));
        }
示例#2
0
        public static async Task<StandardResponse<int>> WithControllerUsingService()
        {
            var passport = new Passport(_storage);

            var controllerUsingService = new ControllerUsingService(passport, new Service());

            //controllerUsingService.Calculate("2", 10, "/", 2);
            return await controllerUsingService.Calculate("2", 10, "/", 5);
        }