Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyService"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 /// <param name="companyRepository">The company repository.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="shareholderRepository">The shareholder repository.</param>
 /// <param name="shareAccountService">The share account service.</param>
 public CompanyService(IUnitOfWork unitOfWork
                       , IRepository <Company> companyRepository
                       , IRepository <UserProfile> userRepository
                       , IRepository <Shareholder> shareholderRepository
                       , ISharesAccountService shareAccountService)
 {
     _unitOfWork            = unitOfWork;
     _companyRepository     = companyRepository;
     _userRepository        = userRepository;
     _shareholderRepository = shareholderRepository;
     _shareAccountService   = shareAccountService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sharesAccountService"></param>
 public ShareAccountController(ISharesAccountService sharesAccountService)
 {
     _sharesAccountService = sharesAccountService;
 }