protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            base.ConfigureApplicationContainer(container);

            // database configuration
            var factory = new RepositoryFactory();
            container.Register(factory.UserRepository);

            // security configuration
            var googleProvider = new GoogleProvider(new ProviderParams { PublicApiKey = GoogleClientId, SecretApiKey = GoogleSecret });
            var authenticationProviderFactory = new AuthenticationProviderFactory();
            authenticationProviderFactory.AddProvider(googleProvider);
            container.Register<IAuthenticationCallbackProvider>(new GoogleAuthenticationCallbackProvider(factory.UserRepository));

        }
 public static void TestSetup(TestContext context)
 {
     RepositoryFactory factory = new RepositoryFactory();
     userRepo = factory.UserRepository;
 }