public void GivenAContestDeleteCommandHandlerWhenIDeleteAContestThenTheContestIsMArkedAsDeleted()
        {
            var contestId = Guid.NewGuid();
            var mockUnitOfWork = new Mock<IUnitOfWork>();

            var contest = new Contest { Id = contestId, Deleted = false };
            var mockContestRepository = new Mock<IContestRepository>();
            mockContestRepository.Setup(cr => cr.GetSingle(contestId)).Returns(contest);
            var contestDeleteCommandHandler = new ContestDeleteCommandHandler(mockContestRepository.Object, mockUnitOfWork.Object);
            var contestDeleteCommand = new ContestDeleteCommand(contestId);
            contestDeleteCommandHandler.Execute(contestDeleteCommand);

            mockContestRepository.Verify(cr => cr.Update(contest));
            mockUnitOfWork.Verify(uow => uow.Commit());
            contest.Deleted.Should().BeTrue("Unexpected Delete value");
        }
 public void DeleteById(Guid contestId)
 {
     var deleteContestCommand = new ContestDeleteCommand(contestId);
     commandDispatcher.Dispatch(deleteContestCommand);
 }