public PavlovServerPlayerHistoryServiceTest()
 {
     services = new ServicesBuilder();
     _mocker  = new AutoMocker();
     services.Build(_mocker);
     _pavlovServerService = _mocker.CreateInstance <PavlovServerService>();
     _sshServerSerivce    = _mocker.CreateInstance <SshServerSerivce>();
     _pavlovServerPlayerHistoryService = _mocker.CreateInstance <PavlovServerPlayerHistoryService>();
 }
 public PublicViewListsController(PavlovServerPlayerHistoryService pavlovServerPlayerHistoryService,
                                  UserService userService, PavlovServerService pavlovServerService,
                                  PublicViewListsService publicViewListsService, MatchService matchService, MapsService mapsService)
 {
     _pavlovServerPlayerHistoryService = pavlovServerPlayerHistoryService;
     _userService            = userService;
     _pavlovServerService    = pavlovServerService;
     _publicViewListsService = publicViewListsService;
     _matchService           = matchService;
     _mapsService            = mapsService;
 }
 public static void CreatePavlovServerHistory(PavlovServerPlayerHistoryService pavlovServerPlayerHistoryService,
                                              int pavlovServerId, string playerId)
 {
     pavlovServerPlayerHistoryService.Upsert(new List <PavlovServerPlayerHistory>
     {
         new()
         {
             Username   = "******",
             UniqueId   = playerId,
             PlayerName = "null",
             KDA        = "null",
             Cash       = "null",
             TeamId     = 0,
             Score      = 0,
             Kills      = 0,
             Deaths     = 0,
             Assists    = 0,
             ServerId   = pavlovServerId,
             Id         = null,
             date       = default
         }
     },
 public ManageController(
     UserManager <LiteDbUser> userManager,
     SignInManager <LiteDbUser> signInManager,
     IEmailSender emailSender,
     UserService userService,
     SteamIdentityService steamIdentityService,
     PavlovServerPlayerHistoryService pavlovServerPlayerHistoryService,
     MatchService matchService,
     SteamIdentityStatsServerService steamIdentityStatsServerService,
     ILogger <ManageController> logger,
     UrlEncoder urlEncoder)
 {
     _userManager                      = userManager;
     _signInManager                    = signInManager;
     _emailSender                      = emailSender;
     _logger                           = logger;
     _urlEncoder                       = urlEncoder;
     _userService                      = userService;
     _steamIdentityService             = steamIdentityService;
     _pavlovServerPlayerHistoryService = pavlovServerPlayerHistoryService;
     _matchService                     = matchService;
     _steamIdentityStatsServerService  = steamIdentityStatsServerService;
 }