public CartController( AuthorizationServerManager authorizationServerManager, IWcfCartManageService cartManageService, IMailService mailService) { _authorizationServerManager = authorizationServerManager ?? throw new NullReferenceException(nameof(authorizationServerManager)); _cartManageService = cartManageService ?? throw new NullReferenceException(nameof(cartManageService)); _mailService = mailService ?? throw new NullReferenceException(nameof(mailService)); }
public MailService(IWcfCartManageService cartManageService) { _cartManageService = cartManageService; }