public void CreateQuery_returns_a_query_with_the_Fetchers_Context_and_Uri() { var query = _fetcher.CreateQuery <Product, IProduct>(); query.Context .Should().Be(_context); query.Query.RequestUri .Should().Be(_fetcher.GetUrl()); }
public void CreateQuery_throws_InvalidOperationException() { Action callCreateQuery = () => _fetcher.CreateQuery <Product, IProduct>(); callCreateQuery.ShouldThrow <InvalidOperationException>(); }