public void Update() { var id = repo.Insert("jora".AsUser()); repo.GetRoles(id).Count().ShouldEqual(2); var user = repo.Get(id); user.Roles = new[] { new Role() { Id = 3 } }; repo.ChangeRoles(user); repo.GetRoles(id).Count().ShouldEqual(1); }