Пример #1
0
        public async Task testAddRole()
        {
            SystemRole sr = new SystemRole {
                RoleName = "普通用户", RoleDescription = "拥有查看基本模块的权限"
            };
            SystemRoleService srs = new SystemRoleService();

            srs.Add(sr);
            int result = await srs.SaveChangesAsync();

            Assert.IsTrue(result == 1);
        }