Ejemplo n.º 1
0
        private bool CheckInformation(PerosnalInfo personalInfo)
        {
            foreach (var prop in personalInfo.GetType().GetProperties())
            {
                var value = (string)prop.GetValue(personalInfo, null);
                if (!app.Query(c => c.Raw(BuildContainsQuery(value))).Any())
                {
                    return(false);
                }
            }

            return(true);
        }
Ejemplo n.º 2
0
        public void CheckPerosnalInfo()
        {
            var personalInfo = new PerosnalInfo()
            {
                Name    = "Joseph",
                Title   = "COO",
                Company = "Xamarin",
                Dept    = "Developers",
                Twitter = "@josephhill",
                Phone   = "1-855-926-2746",
                Email   = "*****@*****.**"
            };

            Authenticate("username", "password");

            SelectEmployee(personalInfo.Name);
            Assert.IsTrue(CheckInformation(personalInfo),
                          "Personal info not properly displayed");
        }
		private bool CheckInformation (PerosnalInfo personalInfo)
		{
			foreach (var prop in personalInfo.GetType().GetProperties()) {
				var value = (string)prop.GetValue (personalInfo, null);
				if (!app.Query (c => c.Raw (BuildContainsQuery (value))).Any ())
					return false;
			}

			return true;
		}
		public void CheckPerosnalInfo ()
		{
			var personalInfo = new PerosnalInfo () { 
				Name = "Joseph",
				Title = "COO",
				Company = "Xamarin",
				Dept = "Developers",
				Twitter = "@josephhill",
				Phone = "1-855-926-2746",
				Email = "*****@*****.**"
			};

			Authenticate ("username", "password");

			SelectEmployee (personalInfo.Name);
			Assert.IsTrue (CheckInformation (personalInfo), 
				"Personal info not properly displayed");
		}