简体   繁体   English

Silverlight和实体框架中的单元测试

[英]Unit testing in silverlight and entity framework

Could someone point me to any document, where I can test my silverlight application which uses entity framework as the backend data store? 有人可以指出我任何文档,在其中可以测试使用实体框架作为后端数据存储的Silverlight应用程序吗? I found bunch links where they talk about only silveright UI testing not entity framework integration. 我发现很多链接都只在讨论纯白的UI测试,而不是实体框架集成。 One thing I am not able to do is, mock the data model that we use in silverlight that comes from entity frame work. 我不能做的一件事是,模拟我们在Silverlight中使用的来自实体框架的数据模型。 Thanks, 谢谢,

If you're using RIA services, you can test your service with the regular .net unit testing framework or nunit 如果您使用的是RIA服务,则可以使用常规.net单元测试框架或nunit来测试服务

And then you you can unit test your UI using the silverlight unit testing framework against your view model 然后,您可以根据视图模型使用silverlight单元测试框架对UI进行单元测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM