public void Setup() { using (IDbConnection dbConnection = new SqliteConnectionFactory().Create()) { var createProduct = new CreateProductTable(); dbConnection.Execute(createProduct.Query()); } }
public void TearDown() { using (IDbConnection dbConnection = new SqliteConnectionFactory().Create()) { var createProduct = new DeleteProduct(); dbConnection.Execute(createProduct.All()); var dropProductTable = new DropProductTable(); dbConnection.Execute(dropProductTable.Query()); } }