public void MyTestInitialize() { this._db = new R2DisasterContext(); this._re = new EFRepository <Comprehensive>(this._db); //this._reGBCode = new EFRepository<GBCode>(this._db); this._service = new ComprehensiveService(this._re); }
/// <summary> /// 构造函数 /// </summary> /// <param name="cpsService"></param> public InvestigationController(IComprehensiveService cpsService) : base(cpsService) { this._cpsService = cpsService; //Mapper.CreateMap<Comprehensive, ComprehensiveModel>(); //Mapper.CreateMap<ComprehensiveModel, Comprehensive>(); }
public void MyTestInitialize() { this._db = new R2DisasterContext(); this._re = new EFRepository<Comprehensive>(this._db); this._reGBCode = new EFRepository<GBCode>(this._db); this._service = new ComprehensiveService(this._re); }