public void GetAllTest_ThrowException()
        {
            mockCache.Setup(x => x.Get()).ThrowsAsync(new JobNotFoundException());

            var instance = new MergeSortOperation(mockCache.Object, mockLogger.Object);

            Assert.ThrowsAsync <JobNotFoundException>(() => instance.Get());
        }
        public async Task GetAllTest_Success()
        {
            var mockValue = new Executions {
                execution = new List <Execution> {
                    TestData.pendingExecution
                }
            };

            mockCache.Setup(x => x.Get()).ReturnsAsync(mockValue);

            var instance = new MergeSortOperation(mockCache.Object, mockLogger.Object);
            var result   = await instance.Get();

            mockValue.Should().BeEquivalentTo(result);
        }