<commit_before>﻿using System;
using System.Collections.Specialized;
using System.Web;
using NSubstitute;
using NUnit.Framework;
using PaylevenWebAppSharp.Enums;
using PaylevenWebAppSharp.Extensions;
using DeepEqual;
using DeepEqual.Syntax;

namespace PaylevenWebAppSharp.Tests
{
    [TestFixture]
    public class PaylevenWebAppTests
    {
        private const string Token = "fake_token";
        private const string DisplayName = "AppName";
        private const string OrderId = "order_123";
        private readonly Uri _callBackUri = new Uri("https://domain.com/checkout/callback");
        private const string Timestamp = "2016-01-30T11:15:30";

        private readonly PaylevenWebApp _sut = new PaylevenWebApp(Token);
        private readonly HttpRequestBase _httpRequest = Substitute.For<HttpRequestBase>();

        #region GetPaymentUrl
        [Test]
        public void GetPaymentUrl_GeneratesUrl()
        {
            var request = new PaymentRequest
            {
                CallbackUri = _callBackUri,
                DisplayName = DisplayName,
                Currency = Currencies.GBP,
                PriceInCents = 1050,
                Description = @"Some description here",
                OrderId = OrderId
            };<commit_msg>remove unused using<commit_after>﻿using System;
using System.Collections.Specialized;
using System.Web;
using NSubstitute;
using NUnit.Framework;
using PaylevenWebAppSharp.Enums;
using PaylevenWebAppSharp.Extensions;
using DeepEqual.Syntax;

namespace PaylevenWebAppSharp.Tests
{
    [TestFixture]
    public class PaylevenWebAppTests
    {
        private const string Token = "fake_token";
        private const string DisplayName = "AppName";
        private const string OrderId = "order_123";
        private readonly Uri _callBackUri = new Uri("https://domain.com/checkout/callback");
        private const string Timestamp = "2016-01-30T11:15:30";

        private readonly PaylevenWebApp _sut = new PaylevenWebApp(Token);
        private readonly HttpRequestBase _httpRequest = Substitute.For<HttpRequestBase>();

        #region GetPaymentUrl
        [Test]
        public void GetPaymentUrl_GeneratesUrl()
        {
            var request = new PaymentRequest
            {
                CallbackUri = _callBackUri,
                DisplayName = DisplayName,
                Currency = Currencies.GBP,
                PriceInCents = 1050,
                Description = @"Some description here",
                OrderId = OrderId
            };
{'fraction_non_alphanumeric': 0.07332540626238605, 'fraction_numerical': 0.016646848989298454, 'mean_word_length': 2.549929676511955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6738494', 'n_tokens_mistral': 716, 'n_tokens_neox': 653, 'n_words': 170}