Exemple #1
0
        public void ExtensionMethods()
        {
            var container = new TinyContainer();

            new MyModule().RegisterServices(container);
            // or
            container.RegisterModule(new MyModule());
            // or
            container.RegisterModule <MyOtherModule>();

            Assert.IsNotNull(container.Resolve <Simple>());
            Assert.IsNotNull(container.Resolve <ISimple>());
        }