public void GetFrob_Works() { var auth = new Auth(ApiKey, Secret); frob = auth.GetFrob(); var authUri = auth.GenerateAuthenticationUri(frob); Process.Start(authUri.AbsoluteUri); Debug.WriteLine(authUri.ToString()); }
public void GetFrob_Works2() { var network = new Mock<INetwork>(); var good = ""; network.Setup(n => n.GetResponse(It.Is<string>(uri => uri == ""))).Returns(new StringReader(GoodFrob)); var auth = new Auth(ApiKey, Secret); var frob = auth.GetFrob(); Assert.AreEqual("6789", frob); }