Esempio n. 1
0
        protected ReplenishmentItemDto BuildNonUrgentReplenishmentItemDto(DateTime nextReplenishmentDate)
        {
            var itemDto = new ReplenishmentItemDto()
            {
                Id = 3,
                Name = "Yoghurt",
                NextReplenishmentDate = nextReplenishmentDate,
                ReplenishmentDate = new DateTime(2020, 10, 01)
            };

            return itemDto;
        }
Esempio n. 2
0
        protected ReplenishmentItemDto BuildUrgentReplenishmentItemDto(DateTime nextReplenishmentDate)
        {
            var itemDto = new ReplenishmentItemDto()
            {
                Id = 1,
                Name = "Popcorn",
                NextReplenishmentDate = nextReplenishmentDate,
                ReplenishmentDate = new DateTime(2020, 10, 01)
            };

            return itemDto;
        }
Esempio n. 3
0
        protected ReplenishmentItemDto BuildItemDtoWithReplenishmentOnFirstReplDate(DateTime nextReplenishmentDate)
        {
            var itemDto = new ReplenishmentItemDto()
            {
                Id = 2,
                Name = "Brownies",
                NextReplenishmentDate = nextReplenishmentDate,
                ReplenishmentDate = new DateTime(2020, 10, 01)
            };

            return itemDto;
        }
Esempio n. 4
0
        protected ReplenishmentItemDto BuildOutOfShoppingListReplenishmentItemDto(DateTime nextReplenishmentDate)
        {
            var itemDto = new ReplenishmentItemDto()
            {
                Id = 4,
                Name = "Oranges",
                NextReplenishmentDate = nextReplenishmentDate,
                ReplenishmentDate = new DateTime(2020, 10, 01)
            };

            return itemDto;
        }