public void GetProfiles()
        {
            var fotkaApi = new FotkaApi();

            var profiles = fotkaApi.GetOnLineProfiles();

            Assert.AreNotEqual(0, profiles.ToList().Count);
        }
Example #2
0
        void nastepne(int index, bool strona)
        {
            var profile = new FotkaApi().GetProfile(loginy[index].Name);

            if (strona)
            {
                pictureBox2.Load(profile.PhotoUrl);
                strona = false;
                linkLabel1.Text = profile.Name;

            }
            else
            {
                pictureBox1.Load(profile.PhotoUrl);
                strona = true;
                linkLabel2.Text = profile.Name;
            }
        }
        public void GetProfile()
        {
            var fotkaApi = new FotkaApi();

            var profiles = fotkaApi.GetOnLineProfiles();

            var fullProfiles = new List<Profile>();

            profiles.Take(10).ToList().ForEach(p =>
                {
                    fullProfiles.Add(fotkaApi.GetProfile(p.Name));
                });

            fullProfiles.ForEach(fp=>
                {
                      Assert.AreNotEqual(true, string.IsNullOrEmpty(fp.Name));
                      Assert.AreNotEqual(true, string.IsNullOrEmpty(fp.PhotoUrl));
                });
        }