Esempio n. 1
0
        public void GetQueueNameFromEvent_HappyPath()
        {
            // ACT
            var atep = AzureTablesEventPublisher.GetQueueNameFromEvent(typeof(TestClass));

            Assert.AreEqual("gttcodeworkstestsazurestoragetestclass", atep);
        }
Esempio n. 2
0
        public void GetQueueNameFromEvent_LongClassNameTrimsTotheRightSide()
        {
            // ACT
            var atep = AzureTablesEventPublisher.GetQueueNameFromEvent(typeof(TestClassWithAReallyLongNameThatPushesOverTheLengthLimit));

            Assert.AreEqual(63, atep.Length);
            Assert.AreEqual("mespacetestclasswithareallylongnamethatpushesoverthelengthlimit", atep);
        }