Exemple #1
0
        public void Creates_registered_instance()
        {
            var metadata = new YamlMetadataLoader();

            _factory.Instance <IMetadataLoader>(metadata);
            var created = _factory.GetInstance <IMetadataLoader>();

            Assert.IsNotNull(created);
            Assert.AreSame(metadata, created);
        }
        public void InitBase()
        {
            _loader   = new YamlMetadataLoader();
            WebDriver = new NullDriver();

            var factory = new SimpleObjectFactory();

            TurboInitializer.RegisterBuiltInTypes(factory);
            factory.Instance(_loader);

            PageBuilder = factory.GetInstance <IPageFactory>();
        }