예제 #1
0
        public async Task <bool> UserCatalogueReadTest()
        {
            UserCatalogue uc = new UserCatalogue();

            List <IUser> users = await uc.GetAllItems();

            int   id   = users[0].Id;
            IUser user = await uc.GetItem(new int[] { id });

            return(user.Id == users[0].Id);
        }
        public async Task <List <Participant> > FindSpeakers()
        {
            ICatalogue <IUser> catalogue    = new UserCatalogue();
            List <Participant> participants = new List <Participant>();

            foreach (int i in Speakers)
            {
                IUser user = await catalogue.GetItem(new int[] { i });

                if (user is Participant)
                {
                    participants.Add((Participant)user);
                }
            }
            return(participants);
        }