Пример #1
0
 public ApplyLinkRequest(ApplyLink args, APISettings settings)
     : base(settings)
 {
     if (args == null)
     {
         throw new ArgumentException();
     }
     model = args;
 }
 public static void Before()
 {
     args = new NameValueCollection() {
         {"JobDID", "Fake_DID"},
         {"SiteID", "Fake_Site_ID"},
         {"HostSite", "US"},
         {"JApply", "Fake_JApply"},
         {"ApplicationEmail", "*****@*****.**"},
         {"TrackingID", "Fake_TrackingID"},
         {"Cobrand", "Fake_Cobrand"}
     };
     applyLink = new ApplyLink(args);
 }
Пример #3
0
 public static void Before()
 {
     args = new NameValueCollection()
     {
         { "JobDID", "Fake_DID" },
         { "SiteID", "Fake_Site_ID" },
         { "HostSite", "US" },
         { "JApply", "Fake_JApply" },
         { "ApplicationEmail", "*****@*****.**" },
         { "TrackingID", "Fake_TrackingID" },
         { "Cobrand", "Fake_Cobrand" }
     };
     applyLink = new ApplyLink(args);
 }
Пример #4
0
 /// <summary>
 /// Gets the ApplyLink for a Job
 /// </summary>
 /// <param name="request">An ApplyLink values collection to pass to the api.</param>
 /// <returns>The uri to apply to the given job.</returns>
 public string ApplyLink(ApplyLink request) {
     ApplyLinkRequest applyRequest = new ApplyLinkRequest(request, _Settings);
     return applyRequest.Retrieve();
 }
 public ApplyLinkRequestStub(ApplyLink args, APISettings settings) :
     base(args, settings) { }
 public ApplyLinkRequestStub(ApplyLink args, APISettings settings) :
     base(args, settings)
 {
 }
Пример #7
0
        /// <summary>
        /// Gets the ApplyLink for a Job
        /// </summary>
        /// <param name="request">An ApplyLink values collection to pass to the api.</param>
        /// <returns>The uri to apply to the given job.</returns>
        public string ApplyLink(ApplyLink request)
        {
            ApplyLinkRequest applyRequest = new ApplyLinkRequest(request, _Settings);

            return(applyRequest.Retrieve());
        }