예제 #1
0
        public void Work_SendsWorkordersToPlant()
        {
            Workorder.PoType productType = Workorder.PoType.p1;
            DayTime          due         = new DayTime().CreateTimestamp(50);

            _plant1.CanWorkOnType(Arg.Any <Op.OpTypes>()).Returns(false);
            _plant2.CanWorkOnType(Arg.Any <Op.OpTypes>()).Returns(true);

            _subject.CreateWorkorder(productType, due);
            _subject.Work(new DayTime());

            _plant1.DidNotReceive().Add(Arg.Any <IWork>());
            _plant2.Received().Add(Arg.Any <IWork>());
        }
예제 #2
0
 public bool CanWorkOnType(Op.OpTypes type)
 {
     return(_original.CanWorkOnType(type));
 }