예제 #1
0
 private void FNGTR()
 {
     if (!string.IsNullOrEmpty(PhoneNumber))
     {
         OpenOrCloseFngtrPopup(false, string.Empty);
         PerformAction(async() =>
         {
             _siteValidateResponse = await _checkoutBusinessLogic.FNGTR(PhoneNumber);
             PerformSITEAction();
         });
     }
 }
예제 #2
0
        private void ValidateSite()
        {
            PerformAction(async() =>
            {
                var timer = new Stopwatch();
                timer.Restart();

                try
                {
                    // TODO: Find a way to get the capture method
                    _siteValidateResponse = await _checkoutBusinessLogic.ValidateSite(TreatyNumber,
                                                                                      1, CustomerName, PermitNumber);
                    CacheBusinessLogic.RequireSignature = _siteValidateResponse.RequireSignature;
                    PerformSITEAction();
                }
                finally
                {
                    timer.Stop();
                    Log.Info(string.Format("Time taken in Validate Site is {0}ms ", timer.ElapsedMilliseconds));
                }
            });
        }