Exemplo n.º 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);
        }
Exemplo n.º 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>());
        }