Ejemplo n.º 1
0
        public void TestExtractFromPartitionKey()
        {
            const string city         = "city";
            const string date         = "2015-05-21";
            string       partitionKey = string.Format("{0};{1}", city, date);

            Tuple <string, DateTime> values = NewsEntity.ExtractFromPartitionKey(partitionKey);

            Assert.AreEqual(city, values.Item1);
            Assert.AreEqual(DateTime.Parse(date), values.Item2);
        }