示例#1
0
        public async Task GetAllSeasons()
        {
            // Arrange
            var dbContext = A.Fake <ProFootballDbEntities>();

            dbContext.SetUpFakeSeasonsAsync();

            // Act
            var repository = new SharedRepository();
            var result     = await repository.GetAllSeasons(dbContext);

            // Assert
            Assert.IsInstanceOf(typeof(IEnumerable <Season>), result);
        }