Пример #1
0
        public void GetModuleActionsFail()
        {
            //Arrange
            var moduleRepository = new ModuleRepository(_container);
            var dbContext        = _serviceProvider.GetRequiredService <DeviserDbContext>();

            dbContext.ModuleAction.RemoveRange(dbContext.ModuleAction);

            //Act
            var result = moduleRepository.GetModuleActions();

            //Assert
            Assert.NotNull(result);
            Assert.True(result.Count == 0);
        }