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(); }
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); }