コード例 #1
0
        private IWork CreateSubstituteWo(int id, Op.OpTypes type, List <Op> ops)
        {
            IWork wo = Substitute.For <IWork>();

            wo.Id.Returns(id);
            wo.CurrentOpType.Returns(type);
            wo.Operations.Returns(ops);

            return(wo);
        }
コード例 #2
0
 public bool ReceivesType(Op.OpTypes type)
 {
     return(type == VALID_TYPE);
 }
コード例 #3
0
// Pure Methods
        public bool CanWorkOnType(Op.OpTypes type)
        {
            return(Workcenters.Where(x => x.ReceivesType(type)).Any());
        }
コード例 #4
0
 public bool ReceivesType(Op.OpTypes type)
 {
     return(_validTypes.Contains(type));
 }
コード例 #5
0
 public bool CanWorkOnType(Op.OpTypes type)
 {
     return(_original.CanWorkOnType(type));
 }
コード例 #6
0
 public bool ReceivesType(Op.OpTypes type)
 {
     return(Machine.ReceivesType(type));
 }