This commit is contained in:
Николай 2023-05-18 18:07:49 +04:00
parent 3afab0dee9
commit 67257c30ca

View File

@ -1,4 +1,5 @@

using HardwareShopBusinessLogic.MailWorker;
using HardwareShopBusinessLogic.OfficePackage;
using HardwareShopBusinessLogic.OfficePackage.HelperModels;
using HardwareShopBusinessLogic.OfficePackage.Implements;
@ -24,16 +25,16 @@ namespace HardwareShopContracts.BusinessLogicsContracts
private readonly AbstractSaveToWord _saveToWord;
private readonly AbstractSaveToPdf _saveToPdf;
private readonly MailSender _mailSender;
private readonly MailKitWorker _mailKitWorker;
public WorkerReportLogic(IPurchaseStorage purchaseStorage, MailSender mailSender, IBuildStorage buildStorage, AbstractSaveToPdf saveToPdf, AbstractSaveToExcel saveToExcel, AbstractSaveToWord saveToWord)
public WorkerReportLogic(IPurchaseStorage purchaseStorage, MailKitWorker mailKitWorker, IBuildStorage buildStorage, AbstractSaveToPdf saveToPdf, AbstractSaveToExcel saveToExcel, AbstractSaveToWord saveToWord)
{
_purchaseStorage = purchaseStorage;
_buildStorage = buildStorage;
_saveToExcel = saveToExcel;
_saveToWord = saveToWord;
_saveToPdf = saveToPdf;
_mailSender = mailSender;
_mailKitWorker = mailKitWorker;
}
/// <summary>
@ -161,7 +162,7 @@ namespace HardwareShopContracts.BusinessLogicsContracts
DateTo = model.DateTo,
ReportPurchases = GetPurchase(model)
});
// _mailSender.SendMailAsync(new()
// _mailKitWorker.SendMailAsync(new()
// {
// MailAddress = reportModel.UserEmail,
// Subject = "Отчет по покупкам",