Inheritance: System.Entity
Ejemplo n.º 1
0
        internal MovementRejection Reject(DateTime dateReceived, string reason, decimal?quantity, ShipmentQuantityUnits?unit)
        {
            Guard.ArgumentNotDefaultValue(() => dateReceived, dateReceived);
            Guard.ArgumentNotDefaultValue(() => reason, reason);

            var rejection = new MovementRejection(Id, dateReceived, reason, quantity, unit);

            stateMachine.Fire(Trigger.Reject);

            return(rejection);
        }
Ejemplo n.º 2
0
        internal MovementRejection Reject(DateTime dateReceived, string reason)
        {
            Guard.ArgumentNotDefaultValue(() => dateReceived, dateReceived);
            Guard.ArgumentNotDefaultValue(() => reason, reason);

            var rejection = new MovementRejection(Id, dateReceived, reason);

            stateMachine.Fire(Trigger.Reject);

            return(rejection);
        }
Ejemplo n.º 3
0
        internal MovementRejection Reject(DateTime dateReceived,
            string reason,
            string furtherDetails)
        {
            Guard.ArgumentNotDefaultValue(() => dateReceived, dateReceived);
            Guard.ArgumentNotDefaultValue(() => reason, reason);

            var rejection = new MovementRejection(Id, dateReceived, reason, furtherDetails);

            stateMachine.Fire(Trigger.Reject);

            return rejection;
        }