fixed broken convention test

This commit is contained in:
Brendan Forster
2015-01-29 13:04:30 +09:30
parent 4ad2b5ca8d
commit 5ac49efca1
3 changed files with 10 additions and 5 deletions
@@ -16,7 +16,7 @@ namespace Octokit.Tests.Reactive
{
var firstResponse = new TwoFactorRequiredException(TwoFactorType.AuthenticatorApp);
var twoFactorChallengeResult = new TwoFactorChallengeResult("two-factor-code");
var secondResponse = new ApplicationAuthorization { Token = "OAUTHSECRET" };
var secondResponse = new ApplicationAuthorization("OAUTHSECRET");
var client = Substitute.For<IObservableAuthorizationsClient>();
client.GetOrCreateApplicationAuthentication(Args.String, Args.String, Args.NewAuthorization)
@@ -51,7 +51,7 @@ namespace Octokit.Tests.Reactive
TwoFactorChallengeResult.RequestResendCode,
new TwoFactorChallengeResult("two-factor-code")
});
var secondResponse = new ApplicationAuthorization { Token = "OAUTHSECRET" };
var secondResponse = new ApplicationAuthorization("OAUTHSECRET");
var client = Substitute.For<IObservableAuthorizationsClient>();
client.GetOrCreateApplicationAuthentication(Args.String, Args.String, Args.NewAuthorization)