public void AddModulePermissionsFail()
        {
            //Arrange
            var pageRepository = new PageRepository(_container);
            var dbContext      = _serviceProvider.GetRequiredService <DeviserDbContext>();
            List <ModulePermission> pagePermissions = null;

            //Act
            var result = pageRepository.AddModulePermissions(pagePermissions);

            //Assert
            Assert.Null(result);

            //Clean
            dbContext.PagePermission.RemoveRange(dbContext.PagePermission);
        }
        public void AddModulePermissionsSuccess()
        {
            //Arrange
            var pageRepository    = new PageRepository(_container);
            var dbContext         = _serviceProvider.GetRequiredService <DeviserDbContext>();
            var modulePermissions = TestDataRepository.GetModulePermissions();

            //Act
            var result = pageRepository.AddModulePermissions(modulePermissions);

            //Assert
            Assert.NotNull(result);
            Assert.True(result.Count > 0);

            //Clean
            dbContext.PagePermission.RemoveRange(dbContext.PagePermission);
        }