mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
update unit tests
This commit is contained in:
@ -16,6 +16,7 @@ using SharedLibraryCore.Services;
|
||||
using static SharedLibraryCore.Database.Models.EFClient;
|
||||
using FluentAssertions;
|
||||
using FluentAssertions.Extensions;
|
||||
using ILogger = Microsoft.Extensions.Logging.ILogger;
|
||||
|
||||
namespace ApplicationTests
|
||||
{
|
||||
@ -50,6 +51,10 @@ namespace ApplicationTests
|
||||
appConfig = serviceProvider.GetRequiredService<ApplicationConfiguration>();
|
||||
appConfig.MapChangeDelaySeconds = 1;
|
||||
cmdConfig = serviceProvider.GetRequiredService<CommandConfiguration>();
|
||||
serviceProvider.GetService<IW4MServer>().RconParser =
|
||||
serviceProvider.GetService<IRConParser>();
|
||||
|
||||
Utilities.DefaultLogger = serviceProvider.GetRequiredService<ILogger>();
|
||||
|
||||
A.CallTo(() => manager.GetClientService())
|
||||
.Returns(clientService);
|
||||
|
Reference in New Issue
Block a user