/// <summary>
        /// Add a new database to an existing cluster
        /// </summary>
        public Task <Database> AddDatabase(string databaseId, Models.Requests.Database database)
        {
            var parameters = new List <Parameter> {
                new Parameter("id", databaseId, ParameterType.UrlSegment)
            };

            return(_connection.ExecuteRequest <Database>("databases/{id}/dbs", parameters, database, "db", Method.POST));
        }
        public void CorrectRequestForAddDatabase()
        {
            var factory  = Substitute.For <IConnection>();
            var client   = new DatabasesClient(factory);
            var database = new Models.Requests.Database();

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

            factory.Received().ExecuteRequest <Database>("databases/{id}/dbs", parameters, database, "db", Method.POST);
        }