コード例 #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(""); });
            }
        }