Exemple #1
0
        private async void GetActors(string Query)
        {
            Actors = await GetPeople.GetPeopleDataTask(Query.ToString());

            if (Actors != null)
            {
                List.Adapter = new ActorAdapter(this, Actors);
            }
        }
Exemple #2
0
        public async void GetPeople_From_GetPeopleClass()
        {
            //Arrange
            GetPeople getPeople = new GetPeople();

            //Act
            var res = await getPeople.ReturnPeople();

            //Assert
            Assert.NotNull(res);
        }
        public DeletePersonViewModel(
            Messenger messenger,
            GetPeople getPeople,
            DeletePerson deletePerson)
        {
            _messenger    = messenger;
            _deletePerson = deletePerson;
            People        = new ObservableCollection <Person>(getPeople.Execute());

            DeletePersonCommand = new RelayCommand(OnDeletePersonCommand, CanExecuteDeletePersonCommand);
        }
        public ActionResult Index(string search_string)
        {
            if (!String.IsNullOrEmpty(search_string))
            {
                GetPeople mySearch = new GetPeople();

                return(View(mySearch.GetSearched(search_string)));
            }
            else
            {
                return(View());
            }
        }
Exemple #5
0
        public Company(Person owner, Person admin)
        {
            _rnd = new Random(DateTime.Now.Millisecond);

            Name           = Generator.CompanyGenerator.GenerateName();
            Owner          = owner;
            Admin          = admin;
            NumberOfShares = _rnd.Next();
            SharePrice     = _rnd.Next();
            CompanyValue   = _rnd.Next();

            GetPeople.Add(Owner);
            GetPeople.Add(Admin);
        }
Exemple #6
0
        public void CreateCounters()
        {
            var countersToCreate = new CounterCreationDataCollection();

            GetPeople.RegisterCountersForCreation(countersToCreate);
            CreatePerson.RegisterCountersForCreation(countersToCreate);
            PersonRepositoryError.RegisterCountersForCreation(countersToCreate);

            PerformanceCounterCategory.Create(
                CategoryName,
                CategoryName,
                PerformanceCounterCategoryType.SingleInstance,
                countersToCreate);
        }
        public ActionResult Index(int id, string search_string)
        {
            //Load all Group members into Viewdata
            GroupMemberList gm = new GroupMemberList();

            ViewData["MyMembers"] = gm.GetGroupMemberList(id);

            ViewBag.GroupName = _getGroupName(id);
            ViewBag.GroupID   = id;

            if (!String.IsNullOrEmpty(search_string))
            {
                GetPeople mySearch = new GetPeople();

                return(View(mySearch.GetSearchedEmployed(search_string)));
            }
            else
            {
                return(View());
            }
        }
 public List <IPersonModel> Any(GetPeople request)
 {
     return(workflow.Search(request));
 }