Created
May 22, 2012 13:49
-
-
Save marcusoftnet/2769201 to your computer and use it in GitHub Desktop.
Fluent7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DBWrapper | |
| { | |
| private const string DatabasePath = @"c:\Dev\WebAutomationWithSpecFlow\Web\App_Data\Teams.sdf"; | |
| private static dynamic db = Database.Opener.OpenFile(DatabasePath); | |
| public static void RemoveAllTeamsFromDatabase() | |
| { | |
| db.Teams.DeleteAll(); | |
| } | |
| public static void EmptyAllTestData() | |
| { | |
| RemoveAllTeamsFromDatabase(); | |
| } | |
| public static void AddTeamToDatabase(string lagNamn) | |
| { | |
| db.Teams.Insert(Name: lagNamn, City: "Stockholm", Founded: DateTime.Now); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment