Exemplo 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");
        }
Exemplo n.º 2
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");
 }
Exemplo n.º 3
0
 public void ThenNewComputerIsAdded()
 {// Have to fix this method
     Assert.IsTrue(addNewComputer.GetComputerAddedMessage().Contains(newComputer.Name), "Computer Name is not added");
     // make sure to clean the clutter
     CrudHelpers.DelteComputer(hompepage, addNewComputer, newComputer.Name);
 }
Exemplo n.º 4
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");
 }
Exemplo n.º 5
0
 public void ThenIDeleteTheComputerWith(string p0)
 {
     CrudHelpers.DelteComputer(hompepage, addNewComputer, p0);
 }
Exemplo n.º 6
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");
 }