Exemplo n.º 1
0
        public void Should_Allow_PreviousPhysicalLocations_To_Be_Added()
        {
            SpaceTimeInformation         sydney            = new SpaceTimeInformation(new GeographicLocation(33.8650, 151.2094));
            SpaceTimeInformation         london            = new SpaceTimeInformation(new GeographicLocation(51.5072, 0.1275));
            SpaceTimeInformation         newyork           = new SpaceTimeInformation(new GeographicLocation(40.7127, 74.0059));
            SpaceTimeInformation         kingston          = new SpaceTimeInformation(new GeographicLocation(44.2333, 76.5000));
            SpaceTimeInformation         halifax           = new SpaceTimeInformation(new GeographicLocation(44.6478, 63.5714));
            IList <SpaceTimeInformation> previousLocations = new List <SpaceTimeInformation>();

            _fixture.SUT.PreviousLocations.Add(sydney);
            _fixture.SUT.PreviousLocations.Add(london);
            _fixture.SUT.PreviousLocations.Add(newyork);
            _fixture.SUT.PreviousLocations.Add(kingston);
            _fixture.SUT.PreviousLocations.Add(halifax);
            _fixture.SUT.PreviousLocations.Should().HaveCount(5);
            _fixture.SUT.PreviousLocations[0].Should().Be(sydney);
            _fixture.SUT.PreviousLocations[4].Should().Be(halifax);
            Assert.Equal(5, _fixture.SUT.PreviousLocations.Count);
        }
 public Radarsat1Observation(
     int?tenantId,
     string sceneId,
     string mdaOrderNumber,
     string geographicalArea,
     DateTime sceneStart,
     DateTime sceneStop,
     string orbit,
     string orbitDataType,
     string applicationLut,
     string beamMode,
     string productType,
     string format,
     int numberImageLines,
     int numberImagePixels,
     string pixelSpacing,
     GeographicLocation sceneCentre,
     ImageObservationCornerCoordinates cornerCoordinates
     ) : base()
 {
     Id = Guid.NewGuid();
     CurrentLocation                  = new SpaceTimeInformation();
     SceneId                          = sceneId;
     MdaOrderNumber                   = mdaOrderNumber;
     GeographicalArea                 = geographicalArea;
     SceneStartTime                   = sceneStart;
     SceneStopTime                    = sceneStop;
     Orbit                            = orbit;
     OrbitDataType                    = orbitDataType;
     ApplicationLut                   = applicationLut;
     BeamMode                         = beamMode;
     ProductType                      = productType;
     Format                           = format;
     NumberImageLines                 = numberImageLines;
     NumberImagePixels                = numberImagePixels;
     PixelSpacing                     = pixelSpacing;
     SceneCentre                      = sceneCentre;
     Corners                          = cornerCoordinates;
     CreationTime                     = Clock.Now;
     LastModificationTime             = Clock.Now;
     CurrentLocation.PhysicalLocation = SceneCentre;
     CurrentLocation.PointInTime      = SceneStartTime;
 }
Exemplo n.º 3
0
 protected Radarsat1Observation() : base()
 {
     CurrentLocation = new SpaceTimeInformation();
 }
 protected Radarsat1Observation(int?tenantId) : base()
 {
     Id = Guid.NewGuid();
     CurrentLocation = new SpaceTimeInformation();
 }