Partial implementation of SecretService
This commit is contained in:
@@ -6,14 +6,17 @@ namespace Logic;
|
||||
public class PasswordStoreService : IPasswordStoreService
|
||||
{
|
||||
private readonly IRepository repository;
|
||||
private readonly ISecretService secretService;
|
||||
|
||||
public PasswordStoreService(IRepository repository)
|
||||
public PasswordStoreService(IRepository repository, ISecretService secretService)
|
||||
{
|
||||
this.repository = repository;
|
||||
this.secretService = secretService;
|
||||
}
|
||||
|
||||
public void Create(PasswordStore item)
|
||||
{
|
||||
secretService.CreateCollection(item.DisplayName ?? item.Path);
|
||||
repository.Create(item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user