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); this._controller = new PhyGeoDisasterController(this._service); }
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); this._controller = new PhyGeoDisasterController(this._service); }