public void GetQueueNameFromEvent_HappyPath() { // ACT var atep = AzureTablesEventPublisher.GetQueueNameFromEvent(typeof(TestClass)); Assert.AreEqual("gttcodeworkstestsazurestoragetestclass", atep); }
public void GetQueueNameFromEvent_LongClassNameTrimsTotheRightSide() { // ACT var atep = AzureTablesEventPublisher.GetQueueNameFromEvent(typeof(TestClassWithAReallyLongNameThatPushesOverTheLengthLimit)); Assert.AreEqual(63, atep.Length); Assert.AreEqual("mespacetestclasswithareallylongnamethatpushesoverthelengthlimit", atep); }