예제 #1
0
 public void AuthenticationSuccess()
 {
     using (ISIS.VehicleForge.VFWebClient webClient = new ISIS.VehicleForge.VFWebClient(this.fixture.credentials.Url, this.fixture.credentials))
     {
         Assert.DoesNotThrow(() => { webClient.SendGetRequest(""); });
     }
 }
예제 #2
0
 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(""); });
     }
 }
예제 #3
0
        //[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(""); });
            }
        }
예제 #4
0
 public VFExchange(VFWebClient vfWebClient)
 {
     this.m_vfWebClient = vfWebClient;
     this.m_defaultDownloadDirectory      = Path.Combine(Environment.CurrentDirectory, "VFExchangeDownloads");
     vfWebClient.HTTP_WEB_REQUEST_TIMEOUT = 5000;
 }