Example #1
0
        public void Get_RetrievesByPayloadId()
        {
            var store            = new InferenceRequestRepository(_logger.Object, _jobsApi.Object, _inferenceRequestRepository.Object);
            var payloadId        = Guid.NewGuid().ToString();
            var inferenceRequest = store.Get(" ", payloadId);

            _inferenceRequestRepository.Verify(p => p.AsQueryable(), Times.Once());
        }
Example #2
0
        public void Get_ThrowsIfNoArgumentsProvided()
        {
            var store = new InferenceRequestRepository(_logger.Object, _jobsApi.Object, _inferenceRequestRepository.Object);

            Assert.Throws <ArgumentNullException>(() => store.Get(string.Empty, " "));
        }