Exemplo n.º 1
0
        public void VerifyReturnsNullIfNotInitialized()
        {
            var applicationIdProvider = new DictionaryApplicationIdProvider();

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

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