Exemple #1
0
 public ClientService(
     UserEntityRepository <Client, ClientAccount> repo,
     CrudService <User, PrivateClient> userService,
     AccountService <ClientAccount, ClientAccountDTO> accountService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     Credentials credentials,
     ClientOfferService clientOfferService
     ) : base(repo, userService, accountService, clService, purchaseService, credentials)
 {
     ClientOfferService     = clientOfferService;
     NotRequiredForSaving   = new string[] { "AdminPassword" };
     NotRequiredForUpdating = new string[] { "AdminPassword" };
 }
 public TraderService(
     UserEntityRepository <Trader, TraderAccount> repo,
     CrudService <User, PrivateTrader> userService,
     AccountService <TraderAccount, TraderAccountDTO> accountService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     Credentials credentials,
     OfferService offerService
     ) : base(repo, userService, accountService, clService, purchaseService, credentials)
 {
     OfferService           = offerService;
     NotRequiredForSaving   = new string[] { "Address", "Phone", "LogoPath" };
     NotRequiredForUpdating = new string[] { "Address", "Phone", "LogoPath" };
 }
 public UserEntityService(
     UserEntityRepository <TEntity, TAccount> repo,
     CrudService <User, TPrivate> userService,
     AccountService <TAccount, TAccountDTO> accountService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     Credentials credentials
     ) : base(repo)
 {
     UserService           = userService;
     AccountService        = accountService;
     ClService             = clService;
     PurchaseService       = purchaseService;
     Credentials           = credentials;
     SeekReferences        = repo.SeekReferences;
     UnexpectedForSaving   = new string[] { "Id", "CreationTime" };
     UnexpectedForUpdating = new string[] { "Id", "CreationTime" };
 }
 public MultiService(
     ClientService clientService,
     TraderService traderService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     AccountService <ClientAccount, ClientAccountDTO> clientAccountService,
     AccountService <TraderAccount, TraderAccountDTO> traderAccountService,
     PaymentMonitor paymentMonitor,
     Credentials credentials
     )
 {
     ClService            = clService;
     ClientService        = clientService;
     TraderService        = traderService;
     PurchaseService      = purchaseService;
     ClientAccountService = clientAccountService;
     TraderAccountService = traderAccountService;
     PaymentMonitor       = paymentMonitor;
     Credentials          = credentials;
 }