Esempio n. 1
0
        public void ShareProfile_TestRight()
        {
            PersonViewModel personViewModel = new PersonViewModel();
            personViewModel.WebUrl = "htt://blog.soreygarcia.me";

            personViewModel.ShareProfileCommand.Execute(null);
            MocksContainer.socialService
                .Verify(p => p.ShareLink(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<Uri>()), Times.Once);
        }
Esempio n. 2
0
        internal static void SetRandomPerson(MainViewModel context, Person result, int index)
        {
            PersonViewModel person = new PersonViewModel()
            {
                Name = string.Format("{0} {1}", result.first_name, result.last_name),
                Url = result.url,
                WebUrl = result.web_url,
                Gender = result.gender,
                CandidateFor = result.candidate_for,
                MediumImage = result.images.medium,
                ListNumber = result.list_number,
                Party = new PartyViewModel()
                {
                    Id = result.party.id,
                    Name = result.party.name,
                    Logo = result.party.avatar
                }
            };

            context.RandomPeople[index] = null;
            context.RandomPeople[index] = person;
        }
Esempio n. 3
0
 public void ShareProfile_TestFail()
 {
     PersonViewModel personViewModel = new PersonViewModel();
     personViewModel.ShareProfileCommand.Execute(null);
 }