public void Setup() { this.userrepository = new UserRepository(); this.msgrepository = new MessageRepository(); this.service = new ActivityService(this.msgrepository, this.userrepository); UserService uservice = new UserService(this.userrepository); this.user = uservice.NewUser("user"); for (int k = 1; k <= 100; k++) { User follower = uservice.NewUser("follower" + k); uservice.AddFollower(this.user.Id, follower.Id); this.followers.Add(follower); } }
public void Setup() { this.repository = new UserRepository(); this.service = new UserService(this.repository); }