Beispiel #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");
        }
Beispiel #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);
 }
Beispiel #3
0
        public void GivenIFilterComputerWith(string p0)
        {
            newComputer      = new NewComputer();
            newComputer.Name = p0;

            hompepage.EnterFilterText(p0);
            hompepage.SearchSubmit();
        }
Beispiel #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);
 }
Beispiel #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");
 }
Beispiel #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);
        }
Beispiel #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");
        }
Beispiel #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");
 }
Beispiel #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");
 }