我最近为Xamarin.Android构建了一个测验应用程序,并希望对共享库进行一些单元测试。 我对以下文件使用存储库模式。SQLiteMyAppRepository.cs using System;using System.IO;using SQLitepublic class MyAppRepository : IMyAppRepository public sta
我在我的项目中使用linq to nhibernate,我正在使用Mock和SQLLite编写单元测试。使用fluent nhibernate将域对象映射到sql视图。如何使用模拟和SQLite对sql视图进行单元测试?我使用nhibernate,并使用SQLLite编写单元测试。在某些情况下,我的域对象映射到视图而不是表,因此我配置了流畅的nhibernate映射,这样就不会在SQLite数据库模式中生成相应的表。这在开发环境中是有