Ejemplo n.º 1
0
        public void ThenComputerIntroducedDateIsSavedCorrectly()
        {
            computerdetails = CrudHelpers.GetComputer(hompepage, addNewComputer, newComputer.Name);
            CrudHelpers.DelteComputer(hompepage, addNewComputer, newComputer.Name);

            Assert.IsTrue(computerdetails.IntroducredDate == newComputer.IntroducredDate, "Introduced date is not saved correctly");
        }
Ejemplo n.º 2
0
 public void GivenIHaveEnterTheDetails(Table table)
 {
     newComputer = table.CreateInstance <NewComputer>();
     addNewComputer.setComputerName(newComputer.Name);
     addNewComputer.setIntroducredDate(newComputer.IntroducredDate);
     addNewComputer.setDiscontinuedDate(newComputer.DiscontinuedDate);
     addNewComputer.setCompany(newComputer.Company);
 }
Ejemplo n.º 3
0
        public void GivenIFilterComputerWith(string p0)
        {
            newComputer      = new NewComputer();
            newComputer.Name = p0;

            hompepage.EnterFilterText(p0);
            hompepage.SearchSubmit();
        }
Ejemplo n.º 4
0
 public void GivenIAddDetailsOfComputer(Table table)
 {
     newComputer = new NewComputer();
     newComputer = table.CreateInstance <NewComputer>();
     addNewComputer.setComputerName(newComputer.Name);
     addNewComputer.setIntroducredDate(newComputer.IntroducredDate);
     addNewComputer.setDiscontinuedDate(newComputer.DiscontinuedDate);
     addNewComputer.setCompany(newComputer.Company);
 }
Ejemplo n.º 5
0
 public void ThenComputerInformationIsSavedCorrectly()
 {
     computerdetails = CrudHelpers.GetComputer(hompepage, addNewComputer, newComputer.Name);
     CrudHelpers.DelteComputer(hompepage, addNewComputer, newComputer.Name);
     //  Assert.IsTrue(Object.Equals(computerdetails,newComputer), "Computer Information is not saved correctly");
     Assert.IsTrue(computerdetails.Name == newComputer.Name, "Name is not saved correctly");
     Assert.IsTrue(computerdetails.IntroducredDate == newComputer.IntroducredDate, "Introduced date is not saved correctly");
     Assert.IsTrue(computerdetails.DiscontinuedDate == newComputer.DiscontinuedDate, "Discontinued date is not saved correctly");
     Assert.IsTrue(computerdetails.Company == newComputer.Company, "Company Name is not saved correctly");
 }
Ejemplo n.º 6
0
        public void GivenISelectComputerWithName(string p0)
        {
            Dictionary <string, string> temp = new Dictionary <string, string>();

            hompepage.EnterFilterText(p0);
            hompepage.SearchSubmit();
            OldComputer = new NewComputer();
            OldComputer = CrudHelpers.GetComputer(hompepage, addNewComputer, p0);
            hompepage.SelectComputerwithNameFilter(p0);
        }
Ejemplo n.º 7
0
        public void ThenComputerInformationIsUpdated()
        {
            Dictionary <string, string> temp = new Dictionary <string, string>();

            hompepage.EnterFilterText(newComputer.Name);
            hompepage.SearchSubmit();
            updatedComputer = new NewComputer();

            updatedComputer = CrudHelpers.GetComputer(hompepage, addNewComputer, newComputer.Name);

            // this is the comparision of the table
            Console.WriteLine(string.Format("Updated computer name{0}", updatedComputer.Name));
            Console.WriteLine(string.Format("set computer name{0}", newComputer.Name));
            Assert.IsTrue(updatedComputer.Name.Trim() == newComputer.Name.Trim(), "Updated Failed for the computer");
        }
Ejemplo n.º 8
0
 public void ThenComputerNameIsSavedCorrectly()
 {
     computerdetails = CrudHelpers.GetComputer(hompepage, addNewComputer, newComputer.Name);
     CrudHelpers.DelteComputer(hompepage, addNewComputer, newComputer.Name);
     Assert.IsTrue(computerdetails.Name == newComputer.Name, "Name is not saved correctly");
 }
Ejemplo n.º 9
0
 public void ThenComputerCompanyIsSavedCorrectly()
 {
     computerdetails = CrudHelpers.GetComputer(hompepage, addNewComputer, newComputer.Name);
     CrudHelpers.DelteComputer(hompepage, addNewComputer, newComputer.Name);
     Assert.IsTrue(computerdetails.Company == newComputer.Company, "Company Name is not saved");
 }