Inheritance: System.Entity
Exemple #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);
        }
Exemple #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);
        }
        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;
        }