コード例 #1
0
        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());
        }
コード例 #2
0
        public void CreateQuery_throws_InvalidOperationException()
        {
            Action callCreateQuery = () => _fetcher.CreateQuery <Product, IProduct>();

            callCreateQuery.ShouldThrow <InvalidOperationException>();
        }