コード例 #1
0
 public App(
     IOrderCommandRepository orderCommandRepo,
     IRestaurantQueryRepository restaurantQueryRepo,
     IRestaurantCommandRepository restaurantCommandRepo,
     ICustomerCommandRepository customerCommandRepo,
     ILocationCommandRepository locationCommandRepo,
     IMealCommandRepository mealCommandRepo,
     IFoodOrderingContextFactory factory,
     IDailyMenuCommandRepository dailyMenuCommand,
     IMapper mapper,
     IFoodQueryRepository foodQueryRepository,
     IFoodCommandRepository foodCommandRepository,
     IRoleCommandRepository roleCommandRepo)
 {
     _orderCommandRepo            = orderCommandRepo;
     _restaurantQueryRepository   = restaurantQueryRepo;
     _restaurantCommandRepository = restaurantCommandRepo;
     _customerCommandRepo         = customerCommandRepo;
     _locationCommandRepo         = locationCommandRepo;
     _mealCommandRepo             = mealCommandRepo;
     _factory = factory;
     _dailyMenuCommandRepo = dailyMenuCommand;
     _mapper = mapper;
     _foodQueryRepository   = foodQueryRepository;
     _foodCommandRepository = foodCommandRepository;
     _roleCommandRepo       = roleCommandRepo;
 }
コード例 #2
0
 public FoodController(
     IFoodCommandRepository foodCommandRepository,
     IFoodQueryRepository foodRepository,
     IEitherMapper mapper,
     ILogger <FoodController> logger)
 {
     _foodQueryRepository   = foodRepository;
     _foodCommandRepository = foodCommandRepository;
     _mapper = mapper;
     _logger = logger;
 }
コード例 #3
0
        public GoogleApiImport(
            IRestaurantQueryRepository restaurantQueryRepository,
            IRestaurantCommandRepository restaurantCommandRepository,
            ISheetsAPI sheetsApi,
            IDailyMenuQueryRepository dailyMenuQueryRepository,
            IMapper mapper,
            IFoodQueryRepository foodQueryRepository,
            IFoodCommandRepository foodCommandRepository)
        {
            _restaurantQueryRepository   = restaurantQueryRepository;
            _restaurantCommandRepository = restaurantCommandRepository;
            _mapper = mapper;

            // connectors to a new sheets
            _sheetsApi = sheetsApi;
            _dailyMenuQueryRepository = dailyMenuQueryRepository;
            _foodQueryRepository      = foodQueryRepository;
            _foodCommandRepository    = foodCommandRepository;
        }