Example #1
0
        public void HandleProcess_ForInvalidProcess_AddsProcessToBoxRepository()
        {
            processValidatorMock.ValidateProcess(eventArgs).Returns(false);

            InvokeHandleProcess();

            boxRepositoryMock.DidNotReceiveWithAnyArgs().AddBoxToCache(null);
        }
Example #2
0
 private bool IsValidProcess(ProcessStartedEventArgs eventArgs)
 {
     return(processValidator.ValidateProcess(eventArgs));
 }