Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="phyService"></param>
 public PhyGeoDisasterController(IPhyGeoDisasterService phyService)
     : base(phyService)
 {
     this._phyService = phyService;
 }