public void WhenSaveThenGetFollowersReturnFollowerId() { var followee = new UserId("*****@*****.**"); var follower = new UserId("*****@*****.**"); _repository.Save(new FollowerProjection(followee, follower)); var followers = _repository.GetFollowers(followee); Check.That(followers).ContainsExactly(follower); }
public void WhenUserFollowedThenSaveFollower() { _handler.Handle(new UserFollowed(new SubscriptionId(Follower, Followee))); Check.That(_followersRepository.GetFollowers(Followee)).ContainsExactly(Follower); }