public void AddSellerToClosingFile() { HelperSet.HelperMethodAddWorkflow(); var workFlowPage = new WorkFlowPageNavigation(Driver); var sellerPage = new SellersPage(Driver); var appMembersRep = new AppMemberRepository(DbConn); var closingRep = new ClosingFilesRepository(DbConn); var closinfFileName = closingRep.GetClosingNumberListWithoutBuyerSeller(); workFlowPage .GoToWorkFlowPage() .GoToAppropriateClosingFile() .ClickSellerMenuItem(); sellerPage .ClickAddSellersButton() .SelectSellerType() .TypeFirstName(Configuration.GetSection("SallerFirstName").Value) .TypeLastName(Configuration.GetSection("SellerLastName").Value) .TypeEmail(Configuration.GetSection("SellerEmail").Value) .SelectGender() .SelectMaritalStatus() .SelectExemptField(Configuration.GetSection("SallerFirstName").Value); Assert.AreEqual(Configuration.GetSection("SellerLastName").Value, appMembersRep.GetSellerLastName(Configuration.GetSection("SallerFirstName").Value)); var appMemberRep = new AppMemberRepository(DbConn); appMemberRep.DeleteSellerBuyerByFirstName(Configuration.GetSection("SallerFirstName").Value); }
public void AddBuyerToClosingFile() { var workFlowPage = new WorkFlowPageNavigation(Driver); var buyerPage = new BuyerPage(Driver); var appMembersRep = new AppMemberRepository(DbConn); HelperSet.HelperMethodAddWorkflow(); var firstName = Configuration.GetSection("BuyerFirstName").Value; var lastName = Configuration.GetSection("BuyerLastName").Value; workFlowPage .GoToAppropriateClosingFile() .ClickBuyerMenuItem(); buyerPage .ClickAddBuyerButton() .SelectBuyerType() .TypeFirstName(firstName) .TypeLastName(lastName) .SelectGender() .SelectMaritalStatus() .SelectTenancy(Configuration.GetSection("BuyerFirstName").Value); Assert.AreEqual(lastName, appMembersRep.GetSellerLastName(firstName), "Buyer Was created"); }