Exemplo n.º 1
0
        public void ShouldNotBeActiveWithExpiry()
        {
            var stalk = new ComplexStalk("abc")
            {
                IsEnabled  = true,
                ExpiryTime = DateTime.UtcNow.AddMinutes(-1)
            };

            Assert.IsFalse(stalk.IsActive());
        }
Exemplo n.º 2
0
        public void ShouldNotBeActive()
        {
            var stalk = new ComplexStalk("abc")
            {
                IsEnabled  = false,
                ExpiryTime = null
            };

            Assert.IsFalse(stalk.IsActive());
        }
Exemplo n.º 3
0
        public void ShouldBeActive()
        {
            var stalk = new ComplexStalk("abc")
            {
                IsEnabled  = true,
                ExpiryTime = null
            };

            Assert.IsTrue(stalk.IsActive());
        }