using NUnit.Framework;
using ServiceStack.Common.Tests.Models;

namespace ServiceStack.Redis.Tests.Support
{
	public class CustomTypeFactory : ModelFactoryBase<CustomType>
	{
		public CustomTypeFactory()
		{
			ModelConfig<CustomType>.Id(x => x.CustomId);
		}

		public override void AssertIsEqual(CustomType actual, CustomType expected)
		{
			Assert.AreEqual(actual.CustomId, Is.EqualTo(expected.CustomId));
			Assert.AreEqual(actual.CustomName, Is.EqualTo(expected.CustomName));
		}

		public override CustomType CreateInstance(int i)
		{
			return new CustomType { CustomId = i, CustomName = "Name" + i };
		}
	}

}
using NUnit.Framework;
using ServiceStack.Common.Tests.Models;

namespace ServiceStack.Redis.Tests.Support
{
	public class CustomTypeFactory : ModelFactoryBase<CustomType>
	{
		public CustomTypeFactory()
		{
			ModelConfig<CustomType>.Id(x => x.CustomId);
		}

		public override void AssertIsEqual(CustomType actual, CustomType expected)
		{
			Assert.AreEqual(actual.CustomId, expected.CustomId);
			Assert.AreEqual(actual.CustomName, expected.CustomName);
		}

		public override CustomType CreateInstance(int i)
		{
			return new CustomType { CustomId = i, CustomName = "Name" + i };
		}
	}

}
Fix For Broken Tests For CustomType List
Fix For Broken Tests For CustomType List
