private static void AddGenericRepositoriesTo(IWindsorContainer container)
{
container.Register(Component.For(typeof(IRepositoryWithTypedId<,>)).ImplementedBy(typeof(RepositoryWithTypedId<,>)).Named("repositoryWithTypedId"));
container.Register(Component.For(typeof(IRepository<>)).ImplementedBy(typeof(Repository<>)).Named("repositoryType"));
container.Register(Component.For<IRepository>().ImplementedBy<Repository>().Named("repository"));
//container.Register(Component.For(typeof(IRepositoryFactory)).ImplementedBy<RepositoryFactory>().Named("repositoryFactory"));
//container.Register(Component.For(typeof(IDbService)).ImplementedBy<DbService>().Named("dbService"));
container.Register(Component.For(typeof(IDataExtractionService)).ImplementedBy<DataExtractionService>().Named("dataExtractionService"));
container.Register(Component.For(typeof(ISftpService)).ImplementedBy<SftpService>().Named("sftpService"));
}