Beispiel #1
0
        public Search_Test()
        {
            records = new List <FishingRecord>();
            records.Add(EntityGenerator.GetFishingRecord1());
            records.Add(EntityGenerator.GetFishingRecord2());

            recordsFound = new List <FishingRecord>();
            _params      = new List <SearchParam>();
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public Statistics_Test()
 {
     records = new List <FishingRecord>();
     records.Add(EntityGenerator.GetFishingRecord1());
     records.Add(EntityGenerator.GetFishingRecord2());
 }
Beispiel #4
0
 public FishingRecordRepository_Test()
 {
     record1 = EntityGenerator.GetFishingRecord1();
     record2 = EntityGenerator.GetFishingRecord2();
 }