public Auftrag(string kundenUid, IBillingProvider billingProvider, IDisountProvider discountProvider)
 {
     Uid              = Guid.NewGuid().ToString();
     KundenUid        = kundenUid;
     BillingProvider  = billingProvider;
     DiscountProvider = discountProvider;
 }
Example #2
0
        /// <summary>
        /// Получить аккаунт
        /// </summary>
        /// <param name="login">логин</param>
        /// <param name="password">пароль</param>
        /// <returns>аккаунт</returns>
        protected AccountBase(string login, string password)
        {
            _provider = GetBillingProvider();
            BillingResponce <string> resp = _provider.Login(login, password);

            _sessionKey = GetSessionKey(resp);
            _login      = login;
        }
Example #3
0
 public CostEstimationManager(
     IAssessmentContext context,
     IBillingProvider billingProvider,
     IListPriceProvider listPriceProvider)
 {
     this.context           = context;
     this.billingProvider   = billingProvider;
     this.listPriceProvider = listPriceProvider;
 }
Example #4
0
 public ServerProcessor(AsyncSocketClient client, ISMSStorageProvider storagerProvider, IBillingProvider provider)
 {
     communicator                  = new SMPPCommunicator();
     storage                       = storagerProvider;
     communicator.Disposed        += new EventHandler(communicator_Disposed);
     communicator.OnAlert         += new SMPPCommunicator.AlertEventHandler(communicator_OnAlert);
     communicator.OnBind          += new SMPPCommunicator.BindEventHandler(communicator_OnBind);
     communicator.OnCancelSm      += new SMPPCommunicator.CancelSmEventHandler(communicator_OnCancelSm);
     communicator.OnClose         += new SMPPCommunicator.ClosingEventHandler(communicator_OnClose);
     communicator.OnDataSm        += new SMPPCommunicator.DataSmEventHandler(communicator_OnDataSm);
     communicator.OnDeliverSm     += new SMPPCommunicator.DeliverSmEventHandler(communicator_OnDeliverSm);
     communicator.OnDeliverSmResp += new SMPPCommunicator.DeliverSmRespEventHandler(communicator_OnDeliverSmResp);
     communicator.OnEnquireLink   += new SMPPCommunicator.EnquireLinkEventHandler(communicator_OnEnquireLink);
     communicator.OnError         += new SMPPCommunicator.ErrorEventHandler(communicator_OnError);
     communicator.OnQuerySm       += new SMPPCommunicator.QuerySmEventHandler(communicator_OnQuerySm);
     communicator.OnReplaceSm     += new SMPPCommunicator.ReplaceSmEventHandler(communicator_OnReplaceSm);
     communicator.OnSubmitMulti   += new SMPPCommunicator.SubmitMultiEventHandler(communicator_OnSubmitMulti);
     communicator.OnSubmitSm      += new SMPPCommunicator.SubmitSmEventHandler(communicator_OnSubmitSm);
     communicator.OnUnbind        += new SMPPCommunicator.UnbindEventHandler(communicator_OnUnbind);
     communicator.ProcessServerClient(client);
 }