I have a C # application that communicates with a DB. I want to check out some functions that are database dependent. Therefore, I want to be sure that the database has an initial state before each test run. I am using NUnit to test my application. What tools are available to restore the initial state of the database?Thanks for the help!
You can use databases in SQLite database to create db test environment.
SQLite Nunit and Fluent Nhibernate - Check Data Access Level
unit test . . (NUnit, MSTest ..) , , (, TransactionScope), . , , , .
, , , , ( ) . , , . , . .
, . , , , (- ), -- .
# HashTable DB.
, (, MySQL Oracle ..) , .
(), :
Rhino mocks moq
, , .
MbUnit . Rollback .
MbUnit , NUnit. using DLL MbUnit.
Source: https://habr.com/ru/post/1775574/More articles:Python element list element wise conditional increment - pythonUsing C # to Retrieve Data from a Google Search - c #Настраиваемые привязки Caliburn.Micro не работают в вложенных представлениях? - silverlighthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1775560/how-to-force-jinja2-templates-to-recompile&usg=ALkJrhh4H3dIUEgFzqnkmRQqt_YN8W01PQInline images in wxHaskell - staticParent process does not catch all its child processes - c ++android search history quick search - androidWPF, how to associate your own reference dataset with a tree - c #How to bind a binding table to WPF TreeView - c #assembly optimization Visual Studio 2008 - visual-studio-2008All Articles