public void CorrectRequestForCreate()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new DatabasesClient(factory);

            var database = new Models.Requests.DatabaseCluster();

            client.Create(database);
            factory.Received().ExecuteRequest <DatabaseCluster>("databases", null, database, "database", Method.POST);
        }
Пример #2
0
 /// <summary>
 /// Create a database cluster
 /// </summary>
 public Task <DatabaseCluster> Create(Models.Requests.DatabaseCluster database)
 {
     return(_connection.ExecuteRequest <DatabaseCluster>("databases", null, database, "database", Method.POST));
 }