private void SaveGeneralRequestInformation(ResponseDetails response, GCTSC_ChangeTracking ctRecord)
        {
            GCTSC_ChangeTracking_Requests request = new GCTSC_ChangeTracking_Requests()
            {
                ChangeTrackingId = ctRecord.Id,
                ResponseCode     = response.SendResponse.ToString(),
                ResponseContent  = response.ResponseContent,
                URL = response.URL
            };

            using (RiftEntities context = new RiftEntities())
            {
                try
                {
                    context.GCTSC_ChangeTracking_Requests.Add(request);
                    context.SaveChanges();
                }
                catch (Exception ex) { throw ex; }
            }
        }
 private void CheckForChangeTrackingRequest()
 {
     using (RiftEntities context = new RiftEntities())
     {
         GCTSC_ChangeTracking ctRecord = (from ct in context.GCTSC_ChangeTracking.Where(ct => ct.Accountno == _roTestHelper._testAccountno)
                                          select ct).FirstOrDefault();
         if (ctRecord == null)
         {
             throw new ArgumentNullException("ctRecord");
         }
         else
         {
             GCTSC_ChangeTracking_Requests ctrRecord = (from ctr in context.GCTSC_ChangeTracking_Requests.Where(
                                                            ctr => ctr.ChangeTrackingId == ctRecord.Id &&
                                                            ctr.ResponseCode == "OK"
                                                            )
                                                        select ctr).FirstOrDefault();
             Assert.IsTrue(ctrRecord != null);
         }
     }
 }