public void Should_Be_Exception_Fail() { _recycleHandler = new RecycleHandler(new FakeExceptionRecycleRepository(), new FakeExceptionVideoRepository()); var handlerResponse = (DefaultCommandResult)_recycleHandler.Handle(_validCommand); Assert.True(handlerResponse.IsException); }
public void Given_A_Valid_Command_Should_Be_Success_Status() { _recycleHandler = new RecycleHandler(new FakeRecycleRepository(), new FakeVideoRepository(_dataContextMock)); var handlerResponse = (DefaultCommandResult)_recycleHandler.Handle(_validCommand); Assert.True(handlerResponse.IsSuccess); }