public W1PaymentView()
        {
            PaymentService paymentService = new PaymentService();
            UrlGenerator urlGenerator;

            urlGenerator = new UrlGenerator();
            this.WMI_SUCCESS_URL = urlGenerator.GetSuccessPaymentUrl();
            this.WMI_FAIL_URL = urlGenerator.GetFailPaymentUrl();
        }
        //Заполнение но не добавление W1PaymentView в БД
        //W1Payment добавлять только через PaymentService!
        public W1Payment MakeW1Payment(W1Payment w1Payment)
        {
            IList<W1Payment> w1Payments;
            W1PaymentRepository w1PaymentRepository;
            DateTime expiredDate;
            W1PaymentView w1PaymentView;
            UrlGenerator urlGenerator;

            w1PaymentRepository = new W1PaymentRepository();
            urlGenerator = new UrlGenerator();

            //после дебага расскоментировать!
            //Срок истечения - 30 дней. Формат UTC(+0)
            if (w1Payment.WMI_EXPIRED_DATE == null ||
                w1Payment.WMI_EXPIRED_DATE == DateTime.MinValue)
            {
                expiredDate = DateTime.UtcNow;
                expiredDate = expiredDate.AddDays(SpecialConstants.EXPIRED_DAYS_COUNT);
                w1Payment.WMI_EXPIRED_DATE = expiredDate;
            }
            else w1Payment.WMI_EXPIRED_DATE = w1Payment.WMI_EXPIRED_DATE;
            //w1Payment.WMI_EXPIRED_DATE = new DateTime(2015, 11, 07, 12, 04, 38);

            w1Payment.WMI_SUCCESS_URL = urlGenerator.GetSuccessPaymentUrl();
            w1Payment.WMI_FAIL_URL = urlGenerator.GetFailPaymentUrl();

            w1Payment.WMI_MERCHANT_ID = SpecialConstants.WMI_MERCHANT_ID; //Id W1-кошелька
            w1Payment.WMI_CURRENCY_ID = SpecialConstants.WMI_CURRENCY_ID; //валюта - рубли

            w1Payments = w1PaymentRepository.GetAll().w1Payments;
            //Ключ. Начало отсчета нужно также синхронизировать с
            //MarketDbInitializer10.cs
            w1Payment.WMI_PAYMENT_NO =
                (w1Payments.Count > 0 ? w1Payments.Last().WMI_PAYMENT_NO + 1
                : 122); //в publish установить 1

            w1PaymentView = new W1PaymentView(w1Payment);
            w1Payment.WMI_SIGNATURE = GetSignature(w1PaymentView.dictionary);

            return w1Payment;
        }