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()); }
public void Get_ThrowsIfNoArgumentsProvided() { var store = new InferenceRequestRepository(_logger.Object, _jobsApi.Object, _inferenceRequestRepository.Object); Assert.Throws <ArgumentNullException>(() => store.Get(string.Empty, " ")); }