8999db6362
Adding a MediaTypeMapper similar to the ContentTypeMapper, but type specific. The PetaPoco IMapper implementation is removed as its no longer needed. Updating a few unit tests, as the Where clause is now correctly formatted. Adding unit tests for the new ExpressionHelper and MappingResolver classes.
26 lines
562 B
C#
26 lines
562 B
C#
using NUnit.Framework;
|
|
using Umbraco.Core.Persistence.SqlSyntax;
|
|
|
|
namespace Umbraco.Tests.TestHelpers
|
|
{
|
|
[TestFixture]
|
|
public abstract class BaseUsingSqlCeSyntax
|
|
{
|
|
[SetUp]
|
|
public virtual void Initialize()
|
|
{
|
|
SyntaxConfig.SqlSyntaxProvider = SqlCeSyntaxProvider.Instance;
|
|
|
|
SetUp();
|
|
}
|
|
|
|
public virtual void SetUp()
|
|
{}
|
|
|
|
[TearDown]
|
|
public virtual void TearDown()
|
|
{
|
|
SyntaxConfig.SqlSyntaxProvider = null;
|
|
}
|
|
}
|
|
} |