public void AuthenticationSuccess()
 {
     using (ISIS.VehicleForge.VFWebClient webClient = new ISIS.VehicleForge.VFWebClient(this.fixture.credentials.Url, this.fixture.credentials))
     {
         Assert.DoesNotThrow(() => { webClient.SendGetRequest(""); });
     }
 }
 public void VehicleForgeURLIsInvalid()
 {
     using (ISIS.VehicleForge.VFWebClient webClient = new ISIS.VehicleForge.VFWebClient("https://testbench2.vf.isis.vanderbilt.edu/", this.fixture.credentials))
     {
         Assert.Throws <ISIS.VehicleForge.VFInvalidURLException>(() => { webClient.SendGetRequest(""); });
     }
 }
        //[Fact]
        public void AuthenticationFailure()
        {
            ISIS.Web.Credentials credentialShouldFail = new ISIS.Web.Credentials(this.fixture.credentials);
            credentialShouldFail.Password = "******";

            using (ISIS.VehicleForge.VFWebClient webClient = new ISIS.VehicleForge.VFWebClient(this.fixture.credentials.Url, credentialShouldFail))
            {
                Assert.Throws <ISIS.VehicleForge.VFLoginException>(() => { webClient.SendGetRequest(""); });
            }
        }
Esempio n. 4
0
 public VFExchange(VFWebClient vfWebClient)
 {
     this.m_vfWebClient = vfWebClient;
     this.m_defaultDownloadDirectory      = Path.Combine(Environment.CurrentDirectory, "VFExchangeDownloads");
     vfWebClient.HTTP_WEB_REQUEST_TIMEOUT = 5000;
 }