Beispiel #1
0
        public void SetState(long airWaybillId, long stateId)
        {
            var oldData    = _awbs.Get(airWaybillId).First();
            var oldStateId = oldData.StateId;

            _awbs.SetState(airWaybillId, stateId);

            UpdateApplicationsState(airWaybillId, stateId, oldStateId);
        }
Beispiel #2
0
        public void Test_AwbRepository_SetState()
        {
            var data = CreateTestAirWaybill();

            _awbs.SetState(data.Id, TestConstants.CargoIsFlewStateId);

            var actual = _awbs.Get(data.Id).First();

            actual.StateId.ShouldBeEquivalentTo(TestConstants.CargoIsFlewStateId);
        }