Ejemplo n.º 1
0
        /// <summary>
        /// The init.
        /// </summary>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool Init()
        {
            // register my needed types
            StfContainer.RegisterType <ILearnMore, LearnMore>();

            // get what I need - a WebAdapter:-)
            WebAdapter = StfContainer.Get <IWebAdapter>();

            WebAdapter.OpenUrl("http://democorpweb.azurewebsites.net/");

            return(true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The init.
        /// </summary>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool Init()
        {
            try
            {
                StfContainer.RegisterType <ITestPluginModel, TestPluginModel>();
                StfContainer.RegisterType <ITestPluginModel2, TestPluginModel2>();
                StfContainer.RegisterType <ITestPluginAdapter, TestPluginAdapter>();
                StfContainer.RegisterType <TestPluginTypeWithoutInterface>();
                StfContainer.RegisterType <TestAdapterWithoutInterface>();
                StfContainer.RegisterType <IStfSingletonPluginType, StfSingletonPluginType>();
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// The init.
        /// </summary>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool Init()
        {
            // register my needed types
            StfContainer.RegisterType <ICollection, Collection>();
            StfContainer.RegisterType <IMe, Me.Me>();
            StfContainer.RegisterType <IExplorer, Explorer>();
            StfContainer.RegisterType <IFaq, Faq.Faq>();

            // get what I need - a WebAdapter:-)
            WebAdapter = StfContainer.Get <IWebAdapter>();
            WebAdapter.OpenUrl("http://WrapTrack.org/");

            var currentDomainBaseDirectory = AppDomain.CurrentDomain.BaseDirectory;

            StfLogger.LogKeyValue("Current Directory", currentDomainBaseDirectory, "Current Directory");
            Login("ida88", "lk8dsafpUqwe");

            return(true);
        }