public Search_Test() { records = new List <FishingRecord>(); records.Add(EntityGenerator.GetFishingRecord1()); records.Add(EntityGenerator.GetFishingRecord2()); recordsFound = new List <FishingRecord>(); _params = new List <SearchParam>(); }
public void Test_DeleteLocationThanIsPartOfAFishingRecord() { LocationRepository locRepository = LocationRepository.GetInstance(); locRepository.AddLocation(location1); FishingRecordRepository recRepository = FishingRecordRepository.GetInstance(); recRepository.DeleteAllRecords(); FishingRecord record = EntityGenerator.GetFishingRecord1(); record.Location = location1; recRepository.AddRecord(record); locRepository.DeleteLocation(0); }
public void ReInitializeLocationRepository() { LocationRepository.GetInstance().DeleteAllLocations(); location1 = EntityGenerator.GetLocation1(); location2 = EntityGenerator.GetLocation2(); }
public Statistics_Test() { records = new List <FishingRecord>(); records.Add(EntityGenerator.GetFishingRecord1()); records.Add(EntityGenerator.GetFishingRecord2()); }
public FishingRecordRepository_Test() { record1 = EntityGenerator.GetFishingRecord1(); record2 = EntityGenerator.GetFishingRecord2(); }