[Given(@”we clean the database”)]
public void GivenWeCleanTheDatabase()
{
SqlConnection ThisConnection = new SqlConnection(@”Server=1.10.26;Database=410_LK;Trusted_Connection= True”);
ThisConnection.Open();
SqlCommand thisCommand = ThisConnection.CreateCommand() ;
thisCommand.CommandText = “delete from costcentre where linstid = 410”;
SqlDataReader thisReader = thisCommand.ExecuteReader();
thisReader.Close();
ThisConnection.Close();
}
Leave a Reply