Exemplo n.º 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>();
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void ReInitializeLocationRepository()
 {
     LocationRepository.GetInstance().DeleteAllLocations();
     location1 = EntityGenerator.GetLocation1();
     location2 = EntityGenerator.GetLocation2();
 }
Exemplo n.º 4
0
 public Statistics_Test()
 {
     records = new List <FishingRecord>();
     records.Add(EntityGenerator.GetFishingRecord1());
     records.Add(EntityGenerator.GetFishingRecord2());
 }
Exemplo n.º 5
0
 public FishingRecordRepository_Test()
 {
     record1 = EntityGenerator.GetFishingRecord1();
     record2 = EntityGenerator.GetFishingRecord2();
 }