public async Task GetSingleByIdAsync_Should_Fail_Gracefully_On_Exception()
        {
            //Arrange
            _sut = new OrderQuery(DbContextBuilder.InitEmptyContext(), loggerMock.Object, mapper.CreateMapper());

            //Act
            var result = await _sut.GetSingleByIdAsync(1);

            //Assert
            result.IsSuccess.ShouldBeFalse();
            loggerMock.Verify(x => x.LogError(It.IsAny <Exception>(), It.IsAny <string>()), Times.Once);
        }
        public async Task GetAllAsync_Should_Return_Valid_List()
        {
            //Arrange
            dbContextMock = DbContextBuilder.InitContextWithInMemoryDbSupport();

            _sut = new OrderQuery(dbContextMock, loggerMock.Object, mapper.CreateMapper());
            //Act
            var result = await _sut.GetAllAsync();

            //Assert
            result.IsSuccess.ShouldBeTrue();
            result.Result.ShouldNotBeNull();
            result.Result.Any().ShouldBeTrue();
            result.Result.FirstOrDefault().OrderId.ShouldBe(1);
            result.ErrorMessage.ShouldBeNull();
        }