Test updated for ef
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
James Tombleson 2023-07-09 22:12:41 -07:00
parent 008d79cf3d
commit df348bea5a

View File

@ -23,7 +23,8 @@ public class ArticlesTableTests
public void ArticlesListTest()
{
var cfg = GetConfiguration();
var client = new ArticlesTable(cfg);
var dbconn = cfg.GetConnectionString("Database");
var client = new ArticlesTable(dbconn ?? "");
client.List(0, 25);
}
@ -33,7 +34,8 @@ public class ArticlesTableTests
var uid = Guid.Parse("4ac46772-253c-4c3d-8a2c-29239abd2ad4");
var cfg = GetConfiguration();
var client = new ArticlesTable(cfg);
var dbconn = cfg.GetConnectionString("Database");
var client = new ArticlesTable(dbconn ?? "");
var res = client.GetById(uid);
if (!res.Id.Equals(uid))
{
@ -45,7 +47,8 @@ public class ArticlesTableTests
public void NewRecordTest()
{
var cfg = GetConfiguration();
var client = new ArticlesTable(cfg);
var dbconn = cfg.GetConnectionString("Database");
var client = new ArticlesTable(dbconn ?? "");
var m = new ArticlesEntity
{
Id = Guid.NewGuid(),