public void CorrectRequestForDeleteNodePool() { var factory = Substitute.For <IConnection>(); var client = new KubernetesClient(factory); client.DeleteNodePool("1", "2"); var parameters = Arg.Is <List <Parameter> >(list => (string)list[0].Value == "1" && (string)list[1].Value == "2"); factory.Received().ExecuteRaw("kubernetes/clusters/{id}/node_pools/{poolId}", parameters, null, Method.DELETE); }