IWeightTrackerContext
全部标签 我正在尝试对我在最新的EF4CTP中使用CodeFirst方法构建的非常简单的ASP.NETMVC测试应用程序进行单元测试。我在单元测试/模拟等方面不是很有经验。这是我的Repository类:publicclassWeightTrackerRepository{publicWeightTrackerRepository(){_context=newWeightTrackerContext();}publicWeightTrackerRepository(IWeightTrackerContextcontext){_context=context;}IWeightTrackerCont
我正在尝试对我在最新的EF4CTP中使用CodeFirst方法构建的非常简单的ASP.NETMVC测试应用程序进行单元测试。我在单元测试/模拟等方面不是很有经验。这是我的Repository类:publicclassWeightTrackerRepository{publicWeightTrackerRepository(){_context=newWeightTrackerContext();}publicWeightTrackerRepository(IWeightTrackerContextcontext){_context=context;}IWeightTrackerCont