Example #1
0
        public void LicenseExpiresIn(ExipryDateTestCase tc)
        {
            Mock <Host> host = ObjectFactory.BuiltObject <Host>(ObjectBuilderType.ClearwaterHost, id);

            SetupMockHostWithExpiry(host, new DateTime());
            using (OverriddenExpiresIn ls = new OverriddenExpiresIn(host.Object))
            {
                ls.DummyExpiresIn = tc.Expiry;
                ls.CalculateState();
                Assert.That(ls.LicenseExpiresIn, Is.EqualTo(tc.ExpectedExpiry));
            }
        }
Example #2
0
 public void LicenseExpiresIn(ExipryDateTestCase tc)
 {
     Mock<Host> host = ObjectFactory.BuiltObject<Host>(ObjectBuilderType.ClearwaterHost, id);
     SetupMockHostWithExpiry(host, new DateTime());
     using (OverriddenExpiresIn ls = new OverriddenExpiresIn(host.Object))
     {
         ls.DummyExpiresIn = tc.Expiry;
         ls.CalculateState();
         Assert.That(ls.LicenseExpiresIn, Is.EqualTo(tc.ExpectedExpiry));
     }
 }