コード例 #1
0
ファイル: Group.cs プロジェクト: nkpatterson/TddDemo
 public void AddUser(User user)
 {
     Users.Add(user);
 }
コード例 #2
0
        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);
        }