Typo in Sharp Architecture Reference Guide, page 50

3 views
Skip to first unread message

fmorriso

unread,
Mar 17, 2009, 10:18:16 AM3/17/09
to S#arp Architecture
Similar to the typo on page 39 that I reported earlier, page 50 has
the same issue. Instead of this:

[TestFixture]
[Category("DB Tests")]
public class MappingIntegrationTests
{
[SetUp]
public virtual void SetUp() {
string[] mappingAssemblies =
RepositoryTestsHelper.GetMappingAssemblies();
AutoPersistenceModel autoPersistenceModel =
new AutoPersistenceModelGenerator().Generate();

NHibernateSession.Init(new SimpleSessionStorage(),
mappingAssemblies,
"../../../../app/Northwind.Web/Hibernate.cfg.xml");
}


it should read as follows:

[TestFixture]
[Category("DB Tests")]
public class MappingIntegrationTests
{
[SetUp]
public virtual void SetUp() {
string[] mappingAssemblies =
RepositoryTestsHelper.GetMappingAssemblies();
AutoPersistenceModel autoPersistenceModel =
new AutoPersistenceModelGenerator().Generate();

NHibernateSession.Init(new SimpleSessionStorage(),
mappingAssemblies,
"../../../../app/Northwind.Web/NHibernate.config");
}

Specifically, the line that reads:

"../../../../app/Northwind.Web/Hibernate.cfg.xml");

should read:

"../../../../app/Northwind.Web/NHibernate.config");

Billy

unread,
Mar 19, 2009, 6:30:30 PM3/19/09
to S#arp Architecture
Thanks for brining this up...I'll be sure to correct the
documentation, accordingly.

Billy

On Mar 17, 8:18 am, fmorriso <fpmorri...@verizon.net> wrote:
> Similar to thetypoon page 39 that I reported earlier, page 50 has
Reply all
Reply to author
Forward
0 new messages