public PersistenceOperations(
[NotNull] IApplicationDatabaseService applicationDatabaseService,
[NotNull] DemoFileHelper demoFileHelper,
[NotNull] IUiContext uiContext)
{
if (applicationDatabaseService == null)
{
throw new ArgumentNullException(nameof(applicationDatabaseService));
}
if (demoFileHelper == null)
{
throw new ArgumentNullException(nameof(demoFileHelper));
}
if (uiContext == null)
{
throw new ArgumentNullException(nameof(uiContext));
}
this.uiContext = uiContext;
this.applicationDatabaseService = applicationDatabaseService;
this.demoFileHelper = demoFileHelper;
this.uiContext.Messenger.Register<PasswordSetMessage>(this, OnPasswordSetMessageReceived);
}