public void WhenUsingMultipleLocatorStrategies_ThenTheyAreAllCalled()
        {
            var mocks = new MockLocatorBuilder(3);

            var locator = mocks.Locator;

            var registrations = locator.GetRegistrations(configSource).ToList();

            //CollectionAssert.AreEqual(mocks.Providers, registrations);

            mocks.Verify();
        }
Ejemplo n.º 2
0
        public void WhenUsingMultipleLocatorStrategies_ThenTheyAreAllCalled()
        {
            var mocks = new MockLocatorBuilder(3);

            var locator = mocks.Locator;

            var registrations = locator.GetRegistrations(configSource).ToList();

            //CollectionAssert.AreEqual(mocks.Providers, registrations);

            mocks.Verify();
        }
        public void WhenUsingOneLocatorStrategy_ThenThatStrategyIsCalled()
        {
            var mocks = new MockLocatorBuilder(1);

            var locator = mocks.Locator;

            var registrations = locator.GetRegistrations(configSource);

            Assert.AreEqual(0, registrations.Count());

            mocks.Verify();
        }
Ejemplo n.º 4
0
        public void WhenUsingOneLocatorStrategy_ThenThatStrategyIsCalled()
        {
            var mocks = new MockLocatorBuilder(1);

            var locator = mocks.Locator;

            var registrations = locator.GetRegistrations(configSource);

            Assert.AreEqual(0, registrations.Count());

            mocks.Verify();
        }