public void ConstructingTradingDetailsController_WithNullTradingDetailsRepository_HasCorrectParameterNameForArgumentException()
        {
            // Arrange
            const string expectedParameterName = "tradingDetailsRepository";

            IInsolvencyOrderTradingDetailsRepository <InsolvencyOrderTradingDetailsModel, InsolvencyTradingDetailsEntity> tradingDetailsRepository = null;

            // Act
            void Constructing() => new InsolvencyOrderTradingDetailsController(
                mockDataAccessCradle.Object,
                tradingDetailsRepository,
                mockIncludeReader.Object,
                mockPageInformationProvider.Object,
                mockHalFormatter.Object,
                mockHalCollectionFormatter.Object,
                mockTelemetryClient.Object);

            // Assert
            ExceptionAssert.HasCorrectParameterNameForArgumentException(Constructing, expectedParameterName);
        }
        public void ConstructingTradingDetailsController_WithNullTradingDetailsRepository_ThrowsArgumentNullException()
        {
            // Arrange
            IInsolvencyOrderTradingDetailsRepository <InsolvencyOrderTradingDetailsModel, InsolvencyTradingDetailsEntity> tradingDetailsRepository = null;

            // Act
            void Constructing() => new InsolvencyOrderTradingDetailsController(
                mockDataAccessCradle.Object,
                tradingDetailsRepository,
                mockIncludeReader.Object,
                mockPageInformationProvider.Object,
                mockHalFormatter.Object,
                mockHalCollectionFormatter.Object,
                mockTelemetryClient.Object);

            // Assert
            Assert.ThrowsException <ArgumentNullException>((Action)Constructing);
        }