コード例 #1
0
        private void AddTheAutoMockingContainerExtensionToTheContainer(AutoMoqer automoqer, Config config, Mocking mocking)
        {
            var container = config.Container;

            container.RegisterInstance(config);
            container.RegisterInstance(automoqer);
            container.RegisterInstance <IoC>(this);
            container.RegisterInstance <Mocking>(mocking);
            container.AddNewExtension <AutoMockingContainerExtension>();
        }
コード例 #2
0
 public void Setup(AutoMoqer autoMoqer, Config config, Mocking mocking)
 {
     AddTheAutoMockingContainerExtensionToTheContainer(autoMoqer, config, mocking);
     RegisterInstance(this);
 }