public PersistentPrivateKeyProvider( ISerializer serializer , IHash hash , ILogger logger , ICustomDateTime customDateTime , IOptions <PersistenPrivateKeyConfiguration> options , string ppkDirectory = null//Optional With InjectionContructor ) { this.serializer = serializer; this.hash = hash; this.logger = logger; this.customDateTime = customDateTime; this.ppkPath = Path.Combine(string.IsNullOrEmpty(ppkDirectory) ? Directory.GetCurrentDirectory() : ppkDirectory, ".ppk"); this.Minutes2IncrementExpirtationDate = options.Value.Minutes2IncrementExpirtationDate ?? 60 * 24 * 30; Init(); }
public void TestInit() { this.customDateTime = new CustomDateTime(); }