コード例 #1
0
        public static async Task<StandardResponse<bool>> WithControllerAsyncTest()
        {
            var passport = new Passport(_storage);

            var controller = new Controller(passport);

            await controller.AdditionTest(Guid.NewGuid().ToString("N"));
            return true.GenerateStandardResponse();
        }
コード例 #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);
        }