public void Should_throw_exception_when_null_client_is_used()
		{
			var fakeRequestCoordinator = A.Fake<IRequestCoordinator>();
			var api = new FluentApi<Status>(fakeRequestCoordinator);

			Assert.Throws<ArgumentNullException>(() => api.UsingClient(null));
		}
예제 #2
0
        public void Should_throw_exception_when_null_client_is_used()
        {
            var requestHandler = A.Fake <IRequestBuilder>();
            var api            = new FluentApi <Status>(requestHandler);

            Assert.Throws <ArgumentNullException>(() => api.UsingClient(null));
        }
예제 #3
0
        public void Should_throw_exception_when_null_client_is_used()
        {
            var requestHandler = StubRequestBuilder();
            var httpClient     = StubHttpClient();
            var responseParser = StubResponseParser();
            var api            = new FluentApi <Status>(httpClient, requestHandler, responseParser);

            Assert.Throws <ArgumentNullException>(() => api.UsingClient(null));
        }
		public void Should_throw_exception_when_null_client_is_used()
		{
			var requestHandler = StubRequestBuilder();
			var httpClient = StubHttpClient();
			var responseParser = StubResponseParser();
			var api = new FluentApi<Status>(httpClient, requestHandler, responseParser);

			Assert.Throws<ArgumentNullException>(() => api.UsingClient(null));
		}