<commit_before>﻿using System;
using System.Web;
using NUnit.Framework;
using FluentAssertions;
using Moq;

namespace NanoCart.Tests
{
    [TestFixture]
    public class SessionCartPersistanceProviderTests
    {
        private String _cartId = "fb622491-d7aa-4d94-bb08-3ada030c9330";

        [Test]
        public void GetSessionKey_Returns_Valid_CartSpecific_Key()
        {
            var context = TestUtilities.GetMockedHttpContext();
            var persistanceProvider = new Providers.SessionCartPersistanceProvider(context.Session);

            var sessionKey = persistanceProvider.GetSessionKey(cartId);

            sessionKey.Should().Be("nanocart_fb622491-d7aa-4d94-bb08-3ada030c9330");
        }
<commit_msg>Fix cartId build error for tests<commit_after>﻿using System;
using System.Web;
using NUnit.Framework;
using FluentAssertions;
using Moq;

namespace NanoCart.Tests
{
    [TestFixture]
    public class SessionCartPersistanceProviderTests
    {
        private String _cartId = "fb622491-d7aa-4d94-bb08-3ada030c9330";

        [Test]
        public void GetSessionKey_Returns_Valid_CartSpecific_Key()
        {
            var context = TestUtilities.GetMockedHttpContext();
            var persistanceProvider = new Providers.SessionCartPersistanceProvider(context.Session);

            var sessionKey = persistanceProvider.GetSessionKey(new Guid(_cartId));

            sessionKey.Should().Be("nanocart_fb622491-d7aa-4d94-bb08-3ada030c9330");
        }

{'fraction_non_alphanumeric': 0.08130081300813008, 'fraction_numerical': 0.05420054200542006, 'mean_word_length': 3.408955223880597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7239219', 'n_tokens_mistral': 487, 'n_tokens_neox': 441, 'n_words': 76}