안녕하세요 저는 실행시 유창한 Nhibernate에 대한 단위 테스트를 작성하고 있습니다. isloation 테스트가 통과하지만 여러 테스트를 실행할 때. 또는 'System.Int32'유형의 '1'이면서 'System.Int32'유형의 '2'를 가져오고 'System.Int32'유형의 'Id'가 필요합니다.Fluent Nhibernate System.ApplicationException : 'Id'에 대해 'System.Int32'유형의 '1'이 필요하지만 'System.Int32'유형의 '2'가 있습니다.
[TextFixture] 공공 무효 Can_Correctly_Map_Entity() {
new PersistenceSpecification<UserProfile>(Session)
.CheckProperty(c => c.Id, 1)
.CheckProperty(c => c.UserName, "user")
.CheckProperty(c => c.Address1, "Address1")
.CheckProperty(c => c.Address2, "Address2")
}
여기 Fluent Nhibernate System.ApplicationException : For property 'Id' expected '1' of type 'System.Int32' but got '2' of type 'System.Int32'을 이해하는 것 같다 솔루션을 얻었으나, 설명으로 이것을 사용하는 방법 임 확실하지가