示例#1
0
        public async Task GetDivisionsAsync()
        {
            // Arrange
            var repository = new DivisionRepository();

            var dbContext = A.Fake <ProFootballEntities>();

            dbContext.SetUpFakeDivisionsAsync();

            // Act
            var result = await repository.GetEntitiesAsync(dbContext);

            // Assert
            Assert.IsInstanceOf <IEnumerable <Division> >(result);
        }