Ejemplo n.º 1
0
        public void CorrectRequestForGet()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new KubernetesClient(factory);

            client.Get("1");
            var parameters = Arg.Is <List <Parameter> >(list => (string)list[0].Value == "1");

            factory.Received().ExecuteRequest <KubernetesCluster>("kubernetes/clusters/{id}", parameters, null, "kubernetes_cluster");
        }