示例#1
0
        public void CorrectRequestForGet()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new LoadBalancerClient(factory);

            client.Get(15);

            var parameters = Arg.Is <List <Parameter> >(list => (int)list[0].Value == 15);

            factory.Received().ExecuteRequest <Models.Responses.LoadBalancer>("load_balancers/{id}", null, parameters, "load_balancers", Method.GET);
        }