private static void TestTryResolveFail(Func <AnyContainerBase> factory)
        {
            AnyContainerBase container = factory();

            StaticResolver.SetResolver(container);

            ILogger logger = StaticResolver.TryResolve <ILogger>();

            Assert.IsNull(logger);
        }
        private static void TestTryResolveSucceed(Func <AnyContainerBase> factory)
        {
            AnyContainerBase container = factory();

            container.RegisterSingleton <ILogger, Logger>();

            StaticResolver.SetResolver(container);

            ILogger logger = StaticResolver.TryResolve <ILogger>();

            Assert.IsNotNull(logger);
        }