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(""); }); } }