Пример #1
0
        public void ShouldBindSingleProvider()
        {
            var provider = new AProvider();

            container.BindProvider <I>(provider);
            var p = container.GetRegisteredProviderFor <I>();

            Assert.That(provider, Is.SameAs(p));
        }
Пример #2
0
        public void BinderShoudCorrectlyRegisterProvider()
        {
            IObjectProvider provider = new AProvider();

            binder.ToProvider(provider);
            IObjectProvider containerProvider = container.GetRegisteredProviderFor <I>();

            Assert.That(containerProvider, Is.SameAs(provider));
        }