public void SetUp() { _oAuth = Substitute.For <IGitHubOAuth>(); _persister = Substitute.For <IGitHubUserPersister>(); _userName = "******"; _token = "token"; _oAuth.Login().Returns(new GitHubUserCookie() { UserName = _userName, Token = _token }); _user = new GitHubUser(_oAuth, _persister); }
public GitHubUserProvider(IGitHubOAuth oAuth, IGitHubUserPersister persister) { _oAuth = oAuth; _persister = persister; }
public GitHubUserPersister(IGitHubOAuth oAuth) { _oAuth = oAuth; }
public GitHubUser(IGitHubOAuth oAuth, IGitHubUserPersister persister) { OAuth = oAuth; Persister = persister; }