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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Infrastructure.Migrations;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Grand.Infrastructure.Tests.Migrations;
[TestClass]
public class MigrationManagerTests
{
private readonly MigrationManager migrationManager = new();
[TestMethod]
public void GetAllMigrationsTest()
{
var result = migrationManager.GetAllMigrations();
Assert.AreEqual(2, result.Count());
}
[TestMethod]
public void GetCurrentMigrationsTest()
{
var result = migrationManager.GetCurrentMigrations(new DbVersion(2,4));
Assert.AreEqual(1, result.Count());
}
}