コード例 #1
0
ファイル: BookService.cs プロジェクト: VismaLietuva/simoona
        public BookService(IUnitOfWork2 uow,
                           IApplicationSettings appSettings,
                           IRoleService roleService,
                           IUserService userService,
                           IMailingService mailingService,
                           IMailTemplate mailTemplate,
                           IOrganizationService organizationService,
                           IBookInfoService bookInfoService,
                           IBookServiceValidator bookServiceValidator,
                           IBookMobileServiceValidator bookMobileServiceValidator,
                           IAsyncRunner asyncRunner)
        {
            _uow                 = uow;
            _appSettings         = appSettings;
            _roleService         = roleService;
            _userService         = userService;
            _mailingService      = mailingService;
            _mailTemplate        = mailTemplate;
            _organizationService = organizationService;
            _booksDbSet          = uow.GetDbSet <Book>();
            _officesDbSet        = uow.GetDbSet <Office>();
            _bookLogsDbSet       = uow.GetDbSet <BookLog>();
            _userDbSet           = uow.GetDbSet <ApplicationUser>();
            _bookOfficesDbSet    = uow.GetDbSet <BookOffice>();

            _bookInfoService      = bookInfoService;
            _bookServiceValidator = bookServiceValidator;
            _serviceValidator     = bookMobileServiceValidator;
            _asyncRunner          = asyncRunner;
        }
コード例 #2
0
        public BookService(
            IUnitOfWork2 uow,
            IBookInfoService bookInfoService,
            IBookServiceValidator bookServiceValidator,
            IBooksNotificationService bookNotificationService,
            IBookMobileServiceValidator bookMobileServiceValidator)
        {
            _uow              = uow;
            _booksDbSet       = uow.GetDbSet <Book>();
            _officesDbSet     = uow.GetDbSet <Office>();
            _bookLogsDbSet    = uow.GetDbSet <BookLog>();
            _userDbSet        = uow.GetDbSet <ApplicationUser>();
            _bookOfficesDbSet = uow.GetDbSet <BookOffice>();

            _bookInfoService         = bookInfoService;
            _bookServiceValidator    = bookServiceValidator;
            _serviceValidator        = bookMobileServiceValidator;
            _bookNotificationService = bookNotificationService;
        }
コード例 #3
0
ファイル: BookService.cs プロジェクト: nevaldas/simoona
        public BookService(
            IUnitOfWork2 uow,
            IBookInfoService bookInfoService,
            IBookServiceValidator bookServiceValidator,
            IBookMobileServiceValidator bookMobileServiceValidator,
            IAsyncRunner asyncRunner)
        {
            _uow              = uow;
            _booksDbSet       = uow.GetDbSet <Book>();
            _officesDbSet     = uow.GetDbSet <Office>();
            _bookLogsDbSet    = uow.GetDbSet <BookLog>();
            _userDbSet        = uow.GetDbSet <ApplicationUser>();
            _bookOfficesDbSet = uow.GetDbSet <BookOffice>();

            _bookInfoService      = bookInfoService;
            _bookServiceValidator = bookServiceValidator;
            _serviceValidator     = bookMobileServiceValidator;
            this._asyncRunner     = asyncRunner;
        }