Beispiel #1
0
        public async Task <WeekOrderDto> GetFactMenuOrders([FromBody] WeekYearDto wyDto)
        {
            if (wyDto == null)
            {
                wyDto = YearWeekHelp.GetCurrentWeekYearDto();
            }

            WeekOrderDto weekOrderDto = WeekOrderDto.GetMapDto(_unitOfWork, wyDto);

            return(await Task.FromResult(weekOrderDto));
        }
Beispiel #2
0
        public void GetOrders()
        {
            OrdersController ord   = new OrdersController(_unitOfWork);
            WeekYearDto      wyDto = new WeekYearDto
            {
                Week = 17,
                Year = 2016
            };
            WeekOrderDto uwoDtos = ord.GetFactMenuOrders(wyDto).Result;

            Assert.IsNotNull(uwoDtos);
        }