public void RemoveDivision_HappyPath()
        {
            // Arrange
            var dbContext  = A.Fake <ProFootballEntities>();
            var repository = new DivisionRepository(dbContext);

            var division = new Division();

            A.CallTo(() => dbContext.Divisions.Remove(A <Division> .Ignored)).Returns(division);

            // Act
            var result = repository.RemoveEntity(division);

            // Assert
            A.CallTo(() => dbContext.Divisions.Remove(division)).MustHaveHappenedOnceExactly();
            Assert.AreSame(division, result);
        }
        public void RemoveDivision_ExceptionCaught_LogsAndRethrowsException()
        {
            // Arrange
            var dbContext  = A.Fake <ProFootballEntities>();
            var repository = new DivisionRepository(dbContext);

            var division = new Division();

            A.CallTo(() => dbContext.Divisions.Remove(A <Division> .Ignored)).Throws <Exception>();

            // Act
            Division result = null;

            Assert.Throws <Exception>(() => result = repository.RemoveEntity(division));

            // Assert
            Assert.IsNull(result);
        }