Clean up migration tests
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Data.Common;
|
||||
using System.Linq;
|
||||
using Moq;
|
||||
using NPoco;
|
||||
using NUnit.Framework;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Logging;
|
||||
using Umbraco.Core.Migrations;
|
||||
using Umbraco.Core.Persistence;
|
||||
using Umbraco.Core.Persistence.SqlSyntax;
|
||||
using Umbraco.Tests.Migrations.Stubs;
|
||||
using Umbraco.Tests.Testing;
|
||||
|
||||
@@ -19,18 +14,11 @@ namespace Umbraco.Tests.Migrations
|
||||
public class AlterMigrationTests
|
||||
{
|
||||
private ILogger _logger;
|
||||
private ISqlSyntaxProvider _sqlSyntax;
|
||||
private IUmbracoDatabase _database;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
_logger = Mock.Of<ILogger>();
|
||||
_sqlSyntax = new SqlCeSyntaxProvider();
|
||||
|
||||
var dbProviderFactory = DbProviderFactories.GetFactory(Constants.DbProviderNames.SqlServer);
|
||||
var sqlContext = new SqlContext(_sqlSyntax, DatabaseType.SqlServer2008, Mock.Of<IPocoDataFactory>());
|
||||
_database = new UmbracoDatabase("cstr", sqlContext, dbProviderFactory, _logger);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
using System.Data;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using Semver;
|
||||
using Umbraco.Core.Events;
|
||||
using Umbraco.Core.Migrations;
|
||||
using Umbraco.Core.Migrations.Upgrade;
|
||||
using Umbraco.Core.Persistence;
|
||||
using Umbraco.Core.Scoping;
|
||||
using Umbraco.Core.Services;
|
||||
using ILogger = Umbraco.Core.Logging.ILogger;
|
||||
|
||||
namespace Umbraco.Tests.Migrations
|
||||
|
||||
Reference in New Issue
Block a user