public InmateSelector(string xPath) : base(xPath) { Validate.Exists(getPath(), _searchTime); _toolbarInstance = this; }
public void TwoInmatesBookingSmokeTest() { //• Record D - A name record with two inmate records. (Use the Add option on the inmate screen) neither inmate ID should have an open booking. Toolbar toolbar = new Toolbar(Toolbar.getPath()); toolbar.WaitUntilLoads(); toolbar.OpenNames(); NamesTable namesTable = new NamesTable(NamesTable.getPath()); namesTable.AddInmate(inmateRecordD, "10101987", "M", out inmateTempRecord); namesTable.Close(); toolbar.OpenInmates(); Inmate inmate = new Inmate(Inmate.getPath()); inmate.AddInmate(inmateTempRecord); inmate.AddInmate(inmateTempRecord); inmate.Close(); toolbar.StartBooking(); NameQuickSearch inmateNameQuickSearch = new NameQuickSearch(NameQuickSearch.getPath()); inmateNameQuickSearch.LastNameQuickSearchTextBox.TextValue = inmateRecordD; inmateNameQuickSearch.SearchButton.Click(); inmateNameQuickSearch.FindCell(inmateRecordD).Click(); inmateNameQuickSearch.SelectNameButton.Click(); InmateSelector inmateSelector = new InmateSelector(InmateSelector.getPath()); inmateSelector.SelectInmateButton.Click(); StartBooking startBooking = new StartBooking(StartBooking.getPath()); Assert.AreEqual(startBooking.LastNameTextBox.TextValue, inmateRecordD); startBooking.Close(); }