예제 #1
0
        public void VerifyReturnsNullIfNotInitialized()
        {
            var applicationIdProvider = new DictionaryApplicationIdProvider();

            Assert.IsFalse(applicationIdProvider.TryGetApplicationId(testInstrumentationKey1, out string actual));
            Assert.IsNull(actual);
        }
예제 #2
0
        public void VerifyEvaluatesNext()
        {
            var applicationIdProvider = new DictionaryApplicationIdProvider()
            {
                Next = new MockApplicationIdProvider()
            };

            Assert.IsTrue(applicationIdProvider.TryGetApplicationId(testInstrumentationKey1, out string actual));
            Assert.AreEqual(testApplicationId1, actual);
        }