public async Task GetPackagesByStatusCode_WithValidStatusCode_ReturnsPackagesSuccessfully()
        {
            //Arrange
            var expectedResult = _fixture.CreateMany <Package>(50);

            var pagedResult = new GetPagedResult <Package>(expectedResult, 50);

            _mockPackageRepository
            .Setup(exec =>
                   exec.GetPackagesByStatusCode(
                       It.IsAny <ShipmentStatus>(),
                       0,
                       50))
            .ReturnsAsync(pagedResult);

            //Act
            var response = await _packagesController
                           .GetPackagesByStatusCode(0) as OkObjectResult;

            //Assert
            _mockPackageRepository
            .Verify(exec =>
                    exec.GetPackagesByStatusCode(
                        It.IsAny <ShipmentStatus>(),
                        0,
                        50),
                    Times.Once);

            response.StatusCode
            .Should()
            .Be((int)HttpStatusCode.OK);
        }