public IAccountant CreateAccountant(string firstName, string lastName)
        {
            IAccountant accountant = _accountingFactory.CreateAccountant(firstName, lastName);

            _accountantRepository.Add(accountant);
            return(accountant);
        }
        public IReport WriteReport(string accountantId, string orderId, List <string> productsIds, decimal unitPrice, string description)
        {
            IAccountant accountant = _accountantRepository.GetById(accountantId);
            IReport     report     = accountant.WriteReport(description);

            _reportRepository.Add(report);
            return(report);
        }
예제 #3
0
 public void Add(IAccountant accountant)
 {
     if (!_accountants.Any(x => x.AccountantId == accountant.AccountantId))
     {
         _accountants.Add(accountant);
     }
     else
     {
         throw new Exception("This accountant record already exists.");
     }
 }
 public UserManagerController(ApplicationDbContext context,
                              IAccountant accountant, IUpload upload,
                              IHostingEnvironment env, IHttpContextAccessor httpContextAccessor,
                              RoleManager <IdentityRole> roleMgr,
                              UserManager <ApplicationUser> userMrg)
 {
     _accountant          = accountant;
     _upload              = upload;
     _env                 = env;
     _httpContextAccessor = httpContextAccessor;
     roleManager          = roleMgr;
     userManager          = userMrg;
     _context             = context;
 }
예제 #5
0
        public Worker(
            ILogger <Worker> logger,
            IOptionsMonitor <TimeSettings> optionsSnapshot,
            IModulDengiClient client,
            IConfirmationManager confirmationManager,
            IAccountant accountant)
        {
            this.logger = logger;
            this.confirmationCheckTimeSettings = optionsSnapshot.Get(nameof(this.confirmationCheckTimeSettings));
            this.newProjectCheckTimeSettings   = optionsSnapshot.Get(nameof(this.newProjectCheckTimeSettings));

            this.client = client;
            this.confirmationManager = confirmationManager;
            this.accountant          = accountant;
        }
예제 #6
0
 public AccountController(IDocumentSession session, IJwtValidator jwtValidator, IAccountant accountant)
 {
     _session = session;
     _jwtValidator = jwtValidator;
     _accountant = accountant;
 }
 public void CreateAccountant(string firstName, string lastName)
 {
     IAccountant accountant = _employeeFacade.CreateAccountant(firstName, lastName);
 }
예제 #8
0
 public AccountantController(FinancialContext ctx, IFMUnitOfWork uow, IAccountant patrick)
 {
     this._Context = ctx;
     this._Service = patrick;
     this._Uow     = uow;
 }
예제 #9
0
 public FinancialController(FinancialContext ctx, IFMUnitOfWork uow, IFMUser user, IAccountant accountant, IMasterAccountant masterAccountant)
 {
     this._Context              = ctx;
     this._UserRole             = user;
     this._Uow                  = uow;
     this._AccountantRole       = accountant;
     this._MasterAccountantRole = masterAccountant;
 }
 public MyFoodTrucksController(IDocumentSession session, IAccountant accountant)
 {
     _session = session;
     _accountant = accountant;
 }