|
|
@ -3,6 +3,7 @@ using DbServices;
|
|
|
|
using FluentAssertions;
|
|
|
|
using FluentAssertions;
|
|
|
|
using Microsoft.Data.Sqlite;
|
|
|
|
using Microsoft.Data.Sqlite;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
using Model;
|
|
|
|
using Model;
|
|
|
|
using StubContext;
|
|
|
|
using StubContext;
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +22,8 @@ public class AdminTeamsControllerTest
|
|
|
|
);
|
|
|
|
);
|
|
|
|
context.Database.EnsureCreated();
|
|
|
|
context.Database.EnsureCreated();
|
|
|
|
var controller = new TeamsAdminController(
|
|
|
|
var controller = new TeamsAdminController(
|
|
|
|
new DbTeamService(context)
|
|
|
|
new DbTeamService(context),
|
|
|
|
|
|
|
|
new LoggerFactory().CreateLogger<TeamsAdminController>()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
return (controller, context);
|
|
|
|
return (controller, context);
|
|
|
|