public void CorrectRequestForRemoveForwardingRule() { var factory = Substitute.For <IConnection>(); var client = new LoadBalancerClient(factory); var body = new Models.Responses.ForwardingRules(); client.RemoveForwardingRule(15, body); var parameters = Arg.Is <List <Parameter> >(list => (int)list[0].Value == 15); factory.Received().ExecuteRaw("load_balancers/{id}/forwarding_rules", parameters, body, Method.DELETE); }