test-data

Sample database for exercise [closed]

旧巷老猫 提交于 2019-11-28 14:38:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would like to play with a larger database to test my knowledge on SQL. Is there a huge .sql out there that I can use to play with SQL queries? 回答1: You could try the classic MySQL world database. The world.sql file is available for download here: http://dev.mysql.com/doc/index-other.html Just scroll down to

How to let Autofixture create an instance of a type that contains properties with an interface type?

两盒软妹~` 提交于 2019-11-28 00:05:21
问题 I have such a class: public class ViewModel { public IPagination<Data> List { get; set; } // interface! public SearchFilter SearchFilter { get; set; } public string Test { get; set; } } public class SearchFilter { public string Name { get; set; } } A dynamic proxy shall be created around the IPagination interface and the proxy shall be filled with test data. Now is it possible to let AutoFixture create an instance of the ViewModel type? Be aware that I only know the type at runtime ( typeof

iPhone simulator - how to detect when app is running on simulator (so can setup test data)?

北城余情 提交于 2019-11-27 15:39:33
问题 Any sample code that would show me how to, in my iPhone application code: How to detect if the application has just been DEPLOYED to be run to a simulator (and not a device) [if "Deployed" isn't available, then just detecting when the app is being run on the simulator as opposed to a device) Where about in my iPhone app code would I put the lines that setup my test data in the simulator - this is noting I wanted the test data to be effectively wiped clean/re-instated each time I recompile and

How to generate sample XML documents from their DTD or XSD?

混江龙づ霸主 提交于 2019-11-26 01:26:29
问题 We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We\'d like to generate our test data ourselves from these files. Is there an easy/free way to do that? Edit There are apparently no free tools for this, and I agree that OxygenXML is one of the best tools for this. 回答1: I think Oxygen (http://www.oxygenxml.com/) does it as well, but that's another commerical product. It's a nice