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

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

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