Beispiel #1
0
        public void Find_OneLookupFindNonExisting_CorrectlyFound()
        {
            var container = new LookupContainer();

            container.Add(new CurrencyLookup());
            var country = container.Find <CountryLookup>();

            Assert.That(country, Is.Null);
        }
Beispiel #2
0
        public void Find_TwoLookups_CorrectlyFound()
        {
            var container = new LookupContainer();

            container.Add(new CountryLookup());
            container.Add(new CurrencyLookup());
            var country = container.Find <CountryLookup>();

            Assert.That(country, Is.Not.Null);
            Assert.That(country, Is.TypeOf <CountryLookup>());
        }