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

            // Act
            var result = repository.GetEntities();

            // Assert
            Assert.IsInstanceOf <IEnumerable <Conference> >(result);
        }
        public void GetConferences_ExceptionCaught_LogsAndRethrowsException()
        {
            // Arrange
            var dbContext  = A.Fake <ProFootballEntities>();
            var repository = new ConferenceRepository(dbContext);

            A.CallTo(() => dbContext.Conferences).Throws <Exception>();

            // Act
            IEnumerable <Conference> result = null;

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

            // Assert
            Assert.IsNull(result);
        }