Adding unit tests
This commit is contained in:
@@ -17,12 +17,12 @@ public class SpawnableService
|
||||
_spawnables = db.GetCollection<Spawnable>("Spawnables");
|
||||
}
|
||||
|
||||
public async Task CreateAsync(Spawnable spawnable)
|
||||
public virtual async Task CreateAsync(Spawnable spawnable)
|
||||
{
|
||||
await _spawnables.InsertOneAsync(spawnable);
|
||||
}
|
||||
|
||||
public async Task<List<Spawnable>> GetAllAsync()
|
||||
public virtual async Task<List<Spawnable>> GetAllAsync()
|
||||
{
|
||||
return await _spawnables.Find(_ => true).ToListAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user