Пример #1
0
        private void assertHandlingEvent(Cargo cargo,
                                         HandlingEvent @event,
                                         HandlingActivityType expectedEventType,
                                         Location expectedLocation,
                                         int completionTimeMs,
                                         int registrationTimeMs,
                                         Voyage voyage)
        {
            Assert.AreEqual(expectedEventType, @event.Type);
            Assert.AreEqual(expectedLocation, @event.Location);

            DateTime expectedCompletionTime = SampleDataGenerator.offset(completionTimeMs);

            Assert.AreEqual(expectedCompletionTime, @event.CompletionTime);

            DateTime expectedRegistrationTime = SampleDataGenerator.offset(registrationTimeMs);

            Assert.AreEqual(expectedRegistrationTime, @event.RegistrationTime);

            Assert.AreEqual(voyage, @event.Voyage);
            Assert.AreEqual(cargo, @event.Cargo);
        }