Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

704 B
Raw Blame
using Grand.Business.Messages.Services;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Grand.Business.Messages.Tests.Services;

[TestClass]
public class MessageTokenProviderTests
{
    private MessageTokenProvider _provider;

    [TestInitialize]
    public void Init()
    {
        _provider = new MessageTokenProvider();
    }

    [TestMethod]
    public void GetListOfAllowedTokensTest()
    {
        var tokens = _provider.GetListOfAllowedTokens();
        Assert.IsTrue(tokens.Any());
    }

    [TestMethod]
    public void GetListOfCampaignAllowedTokensTest()
    {
        var tokens = _provider.GetListOfCampaignAllowedTokens();
        Assert.IsTrue(tokens.Any());
    }
}