Beispiel #1
0
 public UnitOfWork(
     IContext ctx,
     ICityRepository City,
     ICountryRepository Country,
     IProvinceRepository Province,
     IDocumentRepository Document,
     IActiveCodeRepository ActiveCode,
     IDeviceRepository Device,
     IEntityStatusRepository EntityStatus,
     INotificationRepository Notification,
     ISettingRepository Setting,
     IUpdateRepository Update,
     ILeadDocumentsRepository LeadDocuments,
     ILeadRepository Lead,
     ILeadStoreCategoriesRepository LeadStoreCategories,
     IOrderDocumentsRepository OrderDocuments,
     IOrderRepository Order,
     IExpenseCategoryRepository ExpenseCategory,
     IExpenseRepository Expense,
     IFeedbackRepository Feedback,
     IPartyRepository Party,
     IPartyDocumentsRepository PartyDocuments,
     IPartyStoreCategoriesRepository PartyStoreCategories,
     IPartyTypeRepository PartyType,
     IProductCategoryRepository ProductCategory,
     IRoleRepository Role,
     IStoreCategoryRepository StoreCategory,
     IUserRepository User,
     IUserRoleRepository UserRole,
     IWorkTimeRepository WorkTime,
     IUserImageRepository UserImages
     )
 {
     this.ctx                  = ctx;
     this.City                 = City;
     this.Country              = Country;
     this.Province             = Province;
     this.Document             = Document;
     this.ActiveCode           = ActiveCode;
     this.Device               = Device;
     this.EntityStatus         = EntityStatus;
     this.Notification         = Notification;
     this.Setting              = Setting;
     this.Update               = Update;
     this.LeadDocuments        = LeadDocuments;
     this.Lead                 = Lead;
     this.LeadStoreCategories  = LeadStoreCategories;
     this.OrderDocuments       = OrderDocuments;
     this.Order                = Order;
     this.ExpenseCategory      = ExpenseCategory;
     this.Expense              = Expense;
     this.Feedback             = Feedback;
     this.Party                = Party;
     this.PartyDocuments       = PartyDocuments;
     this.PartyStoreCategories = PartyStoreCategories;
     this.PartyType            = PartyType;
     this.ProductCategory      = ProductCategory;
     this.Role                 = Role;
     this.StoreCategory        = StoreCategory;
     this.User                 = User;
     this.UserRole             = UserRole;
     this.WorkTime             = WorkTime;
     this.UserImages           = UserImages;
 }
Beispiel #2
0
 public WorkTimeService(IWorkTimeRepository worktimeRepository)
 {
     _worktimeRepository = worktimeRepository == null ? throw new ArgumentNullException(nameof(worktimeRepository) + "is set to null") : worktimeRepository;
 }
 public WorkTimeManager(IWorkTimeRepository workTimeRepository)
 {
     _workTimeRepository = workTimeRepository;
 }