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 Update(Contest contest)
 {
     openLeagueDbContext.Contests.Attach(contest);
 }
 public void Add(Contest entity)
 {
     throw new NotImplementedException();
 }