public void MyTestInitialize() { this._db = new R2DisasterContext(); this._re = new EFRepository <PhyGeoDisaster>(this._db); //this._reGBCode = new EFRepository<GBCode>(this._db); this._service = new PhyGeoDisasterService(this._re); }
public void MyTestInitialize() { this._db = new R2DisasterContext(); this._re = new EFRepository<PhyGeoDisaster>(this._db); //this._reGBCode = new EFRepository<GBCode>(this._db); this._service = new PhyGeoDisasterService(this._re); }
/// <summary> /// 构造函数 /// </summary> /// <param name="phyService"></param> public PhyGeoDisasterController(IPhyGeoDisasterService phyService) : base(phyService) { this._phyService = phyService; }