Esempio n. 1
0
        public Entities.Models.Queue FakeSingleQueue()
        {
            var queue = new FakeQueue().WithUserId("123").WithRoomNo("12").WithQueueNo(14).Build();

            _repo.Queue.Add(queue);
            _repo.Save();
            return(queue);
        }
Esempio n. 2
0
        public List <Entities.Models.Queue> FakeMultipleQueues(IEnumerable <Entities.Models.User> users)
        {
            List <Entities.Models.Queue> queues = new List <Entities.Models.Queue>();
            int i = 0;

            foreach (var user in users)
            {
                Entities.Models.Queue queue = new FakeQueue()
                                              .WithUserId(user.Id)
                                              .WithRoomNo(user.RoomNo)
                                              .WithQueueNo(i++)
                                              .WithOwnerInitials(String.Concat(user.FirstName, user.LastName))
                                              .Build();
                queues.Add(queue);
                _repo.Queue.Add(queue);
            }
            _repo.Save();
            return(queues);
        }