public void TestSetOptions() { var client = new OcipClient("tcp://bwas", "username", "password", new OcipClientOptions() { MinServerVersion = ServerVersion.R22 }); Assert.Equal(ServerVersion.R22, client.Options.MinServerVersion); }
public void TestSslTransport() { var client = new OcipClient("tls://bwas", "username", "password"); Assert.IsType <TcpTransport>(client.Transport); }
public void TestHttpsTransport() { var client = new OcipClient("https://bwas/webservice/services/ProvisioningService", "username", "password"); Assert.IsType <SoapTransport>(client.Transport); }
public void TestDefaultOptions() { var client = new OcipClient("tcp://bwas", "username", "password"); Assert.Equal(ServerVersion.R14sp4, client.Options.MinServerVersion); }