예제 #1
0
        public IEnumerable<IExpense> GetAssociateExpenses(Associate associate)
        {
            var itemsService = new ItemsService();
            var turnStilePoolService = new TurnStyleService(new PoolTurnStyle());
            var turnStileTenisService = new TurnStyleService(new TenisTurnStyle());

            var expenseList = new List<IExpense>
                {
                    itemsService.GetLast5BuyedItems(associate),
                    turnStilePoolService.GetLast2Turned(associate),
                    turnStileTenisService.GetLast2Turned(associate)
                };

            return expenseList;
        }
예제 #2
0
        public IExpense GetLast2Turned(Associate associate)
        {
            //Should return the last two spins in the TurnStyle

            return _turnStyle.GetLast2Turned(associate);
        }