private static void DependencyInjectionInit()
        {
            var services = new ServiceCollection();

            services.AddInternalServices();

            var provider = services.BuildServiceProvider();

            _passwordStrengthService = provider.GetService <IPasswordStrengthService>();
        }
示例#2
0
 public PasswordStrengthController(IPasswordStrengthService passwordStrengthService)
 {
     this.PasswordStrengthService = passwordStrengthService;
 }