Beispiel #1
0
        public void CorrectRequestForCreate()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new KubernetesClient(factory);
            var cluster = new Models.Requests.KubernetesCluster();

            client.Create(cluster);
            factory.Received().ExecuteRequest <KubernetesCluster>("kubernetes/clusters", null, cluster, "kubernetes_cluster", Method.POST);
        }