21 lines
775 B
C#
21 lines
775 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Reflection;
|
|
|
|
namespace YLErp.UnitTestProject.Modules.UnderlyingModule
|
|
{
|
|
[TestClass]
|
|
public class UnderlyingFundManagerMappingTest
|
|
{
|
|
[TestMethod]
|
|
public void InvestAdvisorName_MapsExistingFundManagerColumn()
|
|
{
|
|
var property = typeof(underlying_manager).GetProperty("InvestAdvisorName");
|
|
|
|
Assert.IsNotNull(property, "underlying_manager 应公开基金管理人属性 InvestAdvisorName");
|
|
Assert.AreEqual("investadvisorname", property.GetCustomAttribute<ColumnAttribute>()?.Name);
|
|
Assert.AreEqual("基金管理人", property.GetCustomAttribute<DisplayNameAttribute>()?.DisplayName);
|
|
}
|
|
}
|
|
}
|