public void testNext()
        {
            TrackingId id1 = TrackingIdFactory.nextTrackingId();
            TrackingId id2 = TrackingIdFactory.nextTrackingId();

            Assert.NotNull(id1);
            Assert.NotNull(id2);
            Assert.False(id1.Equals(id2));
        }
Ejemplo n.º 2
0
        public void NextTrackingId()
        {
            TrackingId trackingId = cargoRepository.NextTrackingId();

            Assert.IsNotNull(trackingId);

            TrackingId trackingId2 = cargoRepository.NextTrackingId();

            Assert.IsNotNull(trackingId2);
            Assert.IsFalse(trackingId.Equals(trackingId2));
        }