Exemplo n.º 1
0
        public void RegisterSingleton_WithInstanceTest()
        {
            var container    = new TinyContainer();
            var typeInstance = new EmptyConreteType();

            container.RegisterSingleton(typeInstance);

            var instance = container.ResolveService <EmptyConreteType>();

            Assert.AreEqual(instance, typeInstance);
        }