Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (AircraftReg != null)
            {
                AircraftReg.Dispose();
                AircraftReg = null;
            }

            if (DestinationLabel != null)
            {
                DestinationLabel.Dispose();
                DestinationLabel = null;
            }

            if (FlightNumber != null)
            {
                FlightNumber.Dispose();
                FlightNumber = null;
            }

            if (ScheduleLabel != null)
            {
                ScheduleLabel.Dispose();
                ScheduleLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (DateOutLabel != null)
            {
                DateOutLabel.Dispose();
                DateOutLabel = null;
            }

            if (DestinationLabel != null)
            {
                DestinationLabel.Dispose();
                DestinationLabel = null;
            }

            if (PilotLabel != null)
            {
                PilotLabel.Dispose();
                PilotLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (DestinationLabel != null)
            {
                DestinationLabel.Dispose();
                DestinationLabel = null;
            }

            if (LoadingIndicator != null)
            {
                LoadingIndicator.Dispose();
                LoadingIndicator = null;
            }
        }
Example #4
0
 public string VerifyLaneDetails()
 {
     try
     {
         Click(byLane);
         Assert.IsTrue(WaitUtilDisplayed(byCustLaneEditBtn));
         Click(byCustLaneEditBtn);
         Assert.IsTrue(OriginLabel.GetText(0).Contains(origin));
         Assert.IsTrue(DestinationLabel.GetText(0).Contains(destination));
         Assert.IsTrue(EquipModeLabel.GetText(0).Contains(equipMode));
         SelectElement equipTypes = new SelectElement(_driver.FindElement(byEqType));
         Assert.IsTrue(equipTypes.SelectedOption.Text.Equals(equipType));
         Assert.IsTrue(MaxPay.GetValue().Equals(maxPay));
         Assert.IsTrue(BidID.GetValue().Equals(bidID));
         Assert.IsTrue(CustLaneID.GetValue().Equals(custLaneID));
         Assert.IsTrue(CustCommitment.GetValue().Equals(custCommitment));
         return("VerificationSuccess");
     }
     catch
     {
         return("VerificationFailed");
     }
 }