Esempio n. 1
0
        public void ShouldAddRoleGivenItExists()
        {
            var user = new User
            {
                Roles = UserRoles.BasicRole
            };
            string role = UserRoles.EditorRole;

            _factory.AddRole(user, role);

            Assert.Contains(UserRoles.BasicRole, user.Roles);
            Assert.Contains(role, user.Roles);
        }