protected override void Load(ContainerBuilder builder)
        {
            AutofacHelper.RegisterCqrsTypes <IdentityDetails>(builder);
            AutofacHelper.RegisterCqrsTypes <UserDetailsModule>(builder);
            AutofacHelper.RegisterCqrsTypes <ApplicationModule>(builder);



            AutofacHelper.RegisterAutoMapperProfiles <IdentityDetails>(builder);
            AutofacHelper.RegisterAutoMapperProfiles <ApplicationModule>(builder);
            AutofacHelper.RegisterAutoMapperProfiles <UserDetailsModule>(builder);



            // Repositories
            builder.RegisterType <UserRepository>()
            .As <IUserRepository>()
            .InstancePerLifetimeScope();

            builder.RegisterType <ClaimsManager>()
            .As <IClaimsManager>()
            .InstancePerLifetimeScope();

            builder.RegisterType <UserManager>()
            .As <IUserManager>()
            .InstancePerLifetimeScope();

            builder.RegisterType <RequestManager>()
            .As <IRequestManager>()
            .InstancePerLifetimeScope();

            builder.RegisterType <RoleRepository>()
            .As <IRoleRepository>()
            .InstancePerLifetimeScope();
        }