import {Injectable} from '@angular/core';
import {Http} from '@angular/http';
import 'rxjs/add/operator/toPromise';
import 'rxjs/add/operator/catch';
import {BaseService} from '../../share/base.service';
import {TestSmall} from '../../testlist/_model/testSmall';

@Injectable()
export class AtlasService extends BaseService {
  constructor(protected http: Http) {
    super(http);
  }

  requestCreateTest(test: TestSmall) {
    let obj: any = {};
    obj.test = test;
    return this.requestPost('atlas/test', obj);
  }
}
