public void Fluid_credentials() { var fluidclient = Gateway.Client().WithLogin("test", "password"); fluidclient.Username.ShouldEqual("test"); fluidclient.Password.ShouldEqual("password"); }
public void Should_return_async_client() { Gateway.DefaultUsername = ""; Gateway.DefaultPassword = ""; var client = Gateway.Client(); client.ShouldImplement <IGatewayClient>(); client.Username.ShouldEqual(""); client.Password.ShouldEqual(""); }
public void Should_consider_defaults() { Gateway.DefaultAddress = "http://my-private-gw.pswin.com/"; Gateway.DefaultUsername = "******"; Gateway.DefaultPassword = "******"; var client = Gateway.Client(); client.Username.ShouldEqual("myusername"); client.Password.ShouldEqual("mypassword"); client.Transport.Uri.ShouldEqual(new Uri("http://my-private-gw.pswin.com/")); }
public void Fluid_batch_size() { var fluidclient = Gateway.Client().Batched(100); fluidclient.BatchSize.ShouldEqual(100); }
public void Should_load_proper_protocol() { Gateway.Client("http://my-private-gw.pswin.com/").Transport.ShouldBeType <HttpTransport>(); Gateway.Client("tcp://1.1.1.1:1234").Transport.ShouldBeType <TcpTransport>(); }
public void Should_return_async_client() { var client = Gateway.Client(); client.ShouldImplement <IAsyncGatewayClient>(); }