Example #1
0
        protected override void Load(ContainerBuilder builder)
        {
            //wire things here that apply to both environments

            if (ApplicationConfiguration.GetApplicationConfiguration() == ServiceTypes.Web)
            {
                Web.Load(builder);
            }
            else
            {
                Windows.Load(builder);
            }
        }
Example #2
0
        protected override void Load(ContainerBuilder builder)
        {
            //wire things here that apply to both environments
            builder.RegisterType <UserRepository>().As <IUserRepository>();
            builder.RegisterType <UserUnitOfWork>().As <IUserUnitOfWork>();

            if (ApplicationConfiguration.GetApplicationConfiguration() == ServiceTypes.Web)
            {
                Web.Load(builder);
            }
            else
            {
                Windows.Load(builder);
            }
        }
Example #3
0
        protected override void Load(ContainerBuilder builder)
        {
            //wire things here that apply to both environments
            builder.RegisterType <OrionUdf>().As <IOrionUdf>();
            builder.RegisterType <OrionUdfDto>().As <IOrionUdfDto>();
            builder.RegisterType <UDFConverter>().As <IUDFConverter>();

            if (ApplicationConfiguration.GetApplicationConfiguration() == ServiceTypes.Web)
            {
                Web.Load(builder);
            }
            else
            {
                Windows.Load(builder);
            }
        }
Example #4
0
        private readonly string githubToken = null;  // set in UserSecrets

        public GithubApiTests()
        {
            var configuration = ApplicationConfiguration.GetApplicationConfiguration();

            githubToken = configuration["GithubToken"];
        }