public void WillCallBeginAuthorizationOnOAuthManagerOnLogin() { _oAuthManager.Expect(o => o.BeginAuthorization()).Return(string.Empty); var logic = new LoginLogic(_oAuthManager, null, null, null, null, null); logic.Login(null); _oAuthManager.AssertWasCalled(o => o.BeginAuthorization()); }
public void WillCallBeginAuthorizationOnOAuthManagerOnLogin() { _oAuthManager.Expect(o => o.BeginAuthorization()).Return(string.Empty); _systemProcess.Expect(s => s.Start(Arg <ProcessStartInfo> .Is.Anything)); var logic = new LoginLogic(_oAuthManager, null, _systemProcess, null, null, null, null, _donateIntentRepo); logic.Login(null); _oAuthManager.AssertWasCalled(o => o.BeginAuthorization()); _systemProcess.AssertWasCalled(o => o.Start(Arg <ProcessStartInfo> .Is.Anything)); }