public void SupplementaryDataPanelDate01PassesNoSupplementaryDataPanelDate()
        {
            var suppData = new SupplementaryDataModel
            {
                SupplementaryDataPanelDate = null
            };

            var mock = new Mock <IDateTimeProvider>();

            var rule = new SupplementaryDataPanelDate01(_messageServiceMock.Object, mock.Object);

            Assert.True(rule.IsValid(suppData));
        }
        public void SupplementaryDataPanelDate01PassesSupplementaryDataPanelDateNotInFuture()
        {
            var suppData = new SupplementaryDataModel
            {
                SupplementaryDataPanelDate = new DateTime(2018, 9, 1)
            };

            var date = new DateTime(2018, 9, 1);
            var mock = new Mock <IDateTimeProvider>();

            mock
            .Setup(m => m.GetNowUtc())
            .Returns(date);
            mock
            .Setup(m => m.ConvertUtcToUk(It.IsAny <DateTime>()))
            .Returns(date);

            var rule = new SupplementaryDataPanelDate01(_messageServiceMock.Object, mock.Object);

            Assert.True(rule.IsValid(suppData));
        }