public async Task TestResolveSuccess() { When() .Returns(ResponseMessage(HttpOk, StellarToml)) .Returns(ResponseMessage(HttpOk, SuccessResponse)); var response = await Federation.Resolve("bob*stellar.org"); Assert.AreEqual(response.StellarAddress, "bob*stellar.org"); Assert.AreEqual(response.AccountId, "GCW667JUHCOP5Y7KY6KGDHNPHFM4CS3FCBQ7QWDUALXTX3PGXLSOEALY"); Assert.IsNull(response.MemoType); Assert.IsNull(response.Memo); }
public async Task TestMalformedAddress() { var unused = await Federation.Resolve("bob*stellar.org*test"); }