clean up
This commit is contained in:
parent
34cb33160a
commit
f6ed37b46a
4 changed files with 9 additions and 37 deletions
|
@ -22,15 +22,8 @@ namespace BirdsiteLive.DAL.Postgres.Tests.DataAccessLayers
|
||||||
public async Task CleanUp()
|
public async Task CleanUp()
|
||||||
{
|
{
|
||||||
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
||||||
try
|
|
||||||
{
|
|
||||||
await dal.DeleteAllAsync();
|
await dal.DeleteAllAsync();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Console.WriteLine(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task CreateAndGet()
|
public async Task CreateAndGet()
|
||||||
|
|
|
@ -13,15 +13,8 @@ namespace BirdsiteLive.DAL.Postgres.Tests.DataAccessLayers
|
||||||
public async Task CleanUp()
|
public async Task CleanUp()
|
||||||
{
|
{
|
||||||
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
||||||
try
|
|
||||||
{
|
|
||||||
await dal.DeleteAllAsync();
|
await dal.DeleteAllAsync();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Console.WriteLine(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task GetCurrentDbVersionAsync_UninitializedDb()
|
public async Task GetCurrentDbVersionAsync_UninitializedDb()
|
||||||
|
|
|
@ -24,15 +24,8 @@ namespace BirdsiteLive.DAL.Postgres.Tests.DataAccessLayers
|
||||||
public async Task CleanUp()
|
public async Task CleanUp()
|
||||||
{
|
{
|
||||||
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
||||||
try
|
|
||||||
{
|
|
||||||
await dal.DeleteAllAsync();
|
await dal.DeleteAllAsync();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Console.WriteLine(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task CreateAndGetFollower()
|
public async Task CreateAndGetFollower()
|
||||||
|
|
|
@ -22,15 +22,8 @@ namespace BirdsiteLive.DAL.Postgres.Tests.DataAccessLayers
|
||||||
public async Task CleanUp()
|
public async Task CleanUp()
|
||||||
{
|
{
|
||||||
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
var dal = new DbInitializerPostgresDal(_settings, _tools);
|
||||||
try
|
|
||||||
{
|
|
||||||
await dal.DeleteAllAsync();
|
await dal.DeleteAllAsync();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Console.WriteLine(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task GetTwitterUserAsync_NoUser()
|
public async Task GetTwitterUserAsync_NoUser()
|
||||||
|
|
Loading…
Add table
Reference in a new issue