mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-04 19:08:42 +00:00
Implement DatabaseTests and SlotTests
This commit is contained in:
parent
15e3870620
commit
bbeb7d980e
3 changed files with 71 additions and 2 deletions
15
ProjectLighthouse.Tests/Tests/DatabaseTests.cs
Normal file
15
ProjectLighthouse.Tests/Tests/DatabaseTests.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectLighthouse.Tests {
|
||||
public class DatabaseTests : LighthouseTest {
|
||||
[DatabaseFact]
|
||||
public async Task CanCreateUserTwice() {
|
||||
await using Database database = new();
|
||||
int rand = new Random().Next();
|
||||
|
||||
await database.CreateUser("createUserTwiceTest" + rand);
|
||||
await database.CreateUser("createUserTwiceTest" + rand);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue