var User = require('../../proxy/user');
var Tag = require('../../proxy/tag');
var Topic = require('../../proxy/topic');

exports.createUser = function (callback) {
  var key = new Date().getTime() + '_' + Math.random();
  User.newAndSave('JacksonTian', 'Jackson' + key, 'pass', 'jackson' + key + '@domain.com', '', false, callback);
};

exports.createTopic = function (authorId, callback) {
  var key = new Date().getTime() + '_' + Math.random();
  Topic.newAndSave('title' + key, 'content' + key, authorId, callback);
};

exports.createTag = function (callback) {
  var key = new Date().getTime() + '_' + Math.random();
  Tag.newAndSave('name' + key, 'background' + key, 1, 'description' + key, callback);
};
