public void AddUser(User user) { Users.Add(user); }
public void TestInitialize() { var user = new User { UserName = UserName }; var activity = new Activity { Name = ActivityName }; var permission = new Permission { User = user, Activity = activity }; _users = new FakeRepository<User>(); _activities = new FakeRepository<Activity>(); _permissions = new FakeRepository<Permission>(); _groups = new FakeRepository<Group>(); _cache = new Mock<ObjectCache>(); _users.Save(user); _activities.Save(activity); _permissions.Save(permission); }