import videoScenario from 'web-client/mirage/scenarios/video';
import { assign } from 'ember-platform';

export default function(server, _options) {
  let options = assign({
    videosCount: 0
  }, _options);

  server.create('user', { _id: 12345 });
  let channel = server.create('channel', { _id: 12345 });

  let scaffoldedVideos = [];
  for (let j=0; j<options.videosCount; j++) {
    let video = videoScenario(server, { channel });
    scaffoldedVideos.push(video);
  }

  server.create('trending-video', {videos: scaffoldedVideos});
}
