Skip to content

Instantly share code, notes, and snippets.

@marcusoftnet
Created May 22, 2012 13:49
Show Gist options
  • Select an option

  • Save marcusoftnet/2769201 to your computer and use it in GitHub Desktop.

Select an option

Save marcusoftnet/2769201 to your computer and use it in GitHub Desktop.
Fluent7
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