public void Setup()
 {
     _repository = new CommentRepository("comments",
                                         new ConnectionStringSettings("comments",
                                                                      "Server=teamlab;Database=Test;UserID=dev;Pwd=dev;pooling=True;Character Set=utf8",
                                                                      "MySql.Data.MySqlClient"));
 }
Exemple #2
0
 public CommentApi(ApiContext context)
 {
     _context = context;
     _repository = new CommentRepository(Name, ConfigurationManager.ConnectionStrings[Name]);
 }