public void AsyncRequestShouldPerformSuccessfully() { var factory = new RestClientFactory("http://httpbin.org"); string origin = null; factory.GetAsyncWithAction<TestSuccessResponse>(new TestRequestWithSpecifiedOKType(), response => { origin = response.Origin; }); factory.WaitForAsync(); Assert.That(origin, Is.Not.Null); Assert.That(origin, Is.Not.Empty); }