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"); }
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"); }
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); }
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"); }
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"); }
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"); }