예제 #1
0
        public void Get()
        {
            // Arrange
            SeedController controller = new SeedController();

            // Act
            Seed result = controller.Get();

            // Assert
            Assert.IsNotNull(result);
            TestRandomAlphaNumeric(result.seed, 32);
            Assert.AreEqual(result.expires_at.Kind, DateTimeKind.Utc);
            Assert.IsTrue(result.expires_at > DateTime.UtcNow &&
                          result.expires_at < DateTime.UtcNow.AddDays(1));
        }