コード例 #1
0
        public void CreatePartitionKeyTest()
        {
            string expected = "myApplication_201503";
            string actual   = ApplicationLogEntityManager.CreatePartitionKey("myApplication", new DateTimeOffset(2015, 3, 2, 0, 0, 0, new TimeSpan()));

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
 public void CreatePartitionKeyGuardTest_NullArgument()
 {
     Assert.Throws <ArgumentNullException>(() => ApplicationLogEntityManager.CreatePartitionKey(null, DateTimeOffset.MinValue));
 }