Esempio n. 1
0
        public async Task Get_ALL_Skills_Success()
        {
            using (var context = new AppDbContext(_options))
            {
                //Arrange
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();
                var repo = new SkillRepository(context);
                //Act
                var actual = await repo.GetAllSkilllsAsync();

                //Assert
                Assert.Equal(3, actual.Count());
                context.Database.EnsureDeleted();
            }
        }