public void GetPeriodType() { Data.ArtDatabankenService.PeriodType redlistPeriodType = PeriodManager.GetPeriodType(Data.ArtDatabankenService.PeriodTypeId.SwedishRedlist); Assert.AreEqual(1, redlistPeriodType.Id); Data.ArtDatabankenService.PeriodType helcomRedlistPeriodType = PeriodManager.GetPeriodType(2); Assert.AreEqual((Int32)PeriodTypeId.HelcomRedList, helcomRedlistPeriodType.Id); }
private Data.ArtDatabankenService.PeriodType GetPeriodType(Boolean refresh) { if (_periodType.IsNull() || refresh) { _periodType = PeriodManagerTest.GetOnePeriodType(); } return(_periodType); }
public PeriodTypeTest() { _periodType = null; }