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); }
public bool ReceivesType(Op.OpTypes type) { return(type == VALID_TYPE); }
// Pure Methods public bool CanWorkOnType(Op.OpTypes type) { return(Workcenters.Where(x => x.ReceivesType(type)).Any()); }
public bool ReceivesType(Op.OpTypes type) { return(_validTypes.Contains(type)); }
public bool CanWorkOnType(Op.OpTypes type) { return(_original.CanWorkOnType(type)); }
public bool ReceivesType(Op.OpTypes type) { return(Machine.ReceivesType(type)); }