Пример #1
0
        public override void InstallBindings()
        {
            SeasonInstaller.Install(Container);

            // ValueObjects
            Container.BindInstance(SeasonTexts);
        }
Пример #2
0
        public void Install()
        {
            PreInstall();

            SeasonInstaller.Install(Container);

            // To overwrite at testcase
            Container.Unbind <ISettingReloadable>();
            Container.Unbind <ISettingReadable>();
            Container.BindInterfacesTo <SettingHandler>().AsCached();

            // ValueObjects
            Container
            .BindInstance(
                new List <SeasonInformation>
            {
                new SeasonInformation(Season.Summer, "夏", "夏 is summer", Color.blue),
            } as IEnumerable <SeasonInformation>
                );
        }