At my organization we use a RESTful architechture for our API. I am creating automated unit tests that can be run after every nightly build. Each API call returns an XML string which i then deserialize into a C# object. Is there a way to dynamically generate these classes, or do i manually have to create a class for every object that will be instantiated?
Secondly, is there a way to return all database values to the way they were before these tests were run. I know i can setup a test database where the database refreshes at a certain time every night but i was wondering if there was any way to return the database to it initial state before the tests from the test project itself.
Lastly, Does anyone know how to add a new line before my name? lol :)
Thanks, Hernando Hoyos