Batman.Core.Tests.Bootstrapper.TinyIoCTest.RegisterGenericFunctionTest C# (CSharp) Метод

RegisterGenericFunctionTest() приватный Метод

private RegisterGenericFunctionTest ( ) : void
Результат void
        public void RegisterGenericFunctionTest()
        {
            using (Batman.Core.Bootstrapper.TinyIoC.Bootstrapper Bootstrapper = new Core.Bootstrapper.TinyIoC.Bootstrapper())
            {
                Bootstrapper.Register<TestClass>(() => new TestClass { A = 10, B = 1.23f, C = "Testing" });
                Assert.Equal(new TestClass { A = 10, B = 1.23f, C = "Testing" }, Bootstrapper.Resolve<TestClass>());
            }
        }