public void Missing_query_string_datetime_returns_false()
        {
            _mockRequest.SetupGet(r => r.QueryString)
            .Returns(new NameValueCollection());
            var sut = new DOSSpecifyDispoTimeFeature();

            Assert.IsFalse(sut.HasDate(_mockRequest.Object));
        }
        public void Valid_datetime_returns_true()
        {
            _mockRequest.SetupGet(r => r.QueryString)
            .Returns(new NameValueCollection()
            {
                { _dosSearchDateTimeKeyname, _currentTime.ToString("yyyy-MM-dd HH:mm") }
            });
            var sut = new DOSSpecifyDispoTimeFeature();

            Assert.IsTrue(sut.HasDate(_mockRequest.Object));
        }
        public void Invalid_datetime_format_throws_exception()
        {
            _mockRequest.SetupGet(r => r.QueryString)
            .Returns(new NameValueCollection()
            {
                { _dosSearchDateTimeKeyname, "01/01/2019 12:00:00" }
            });
            var sut = new DOSSpecifyDispoTimeFeature();

            sut.HasDate(_mockRequest.Object);
        }
        public void Empty_datetime_returns_false()
        {
            _mockRequest.SetupGet(r => r.QueryString)
            .Returns(new NameValueCollection()
            {
                { _dosSearchDateTimeKeyname, string.Empty }
            });
            var sut = new DOSSpecifyDispoTimeFeature();

            Assert.IsFalse(sut.HasDate(_mockRequest.Object));
        }