public UserManagementServiceTest() { _clock = new FakeClock(SystemClock.Instance.GetCurrentInstant()); _dbContext = ApplicationDbContextHelper.BuildTestDbContext(_clock); _userManager = IdentityHelpers.BuildUserManager(ApplicationDbContextHelper.BuildTestDbContext(_clock)); _roleManager = IdentityHelpers.BuildRoleManager(ApplicationDbContextHelper.BuildTestDbContext(_clock)); _service = new UserManagementService(_dbContext, _userManager, _roleManager, new NullLogger <UserManagementService>(), _clock); }
public DashboardServiceTest() { _initial = SystemClock.Instance.GetCurrentInstant(); _dbContext = ApplicationDbContextHelper.BuildTestDbContext(); _userManager = IdentityHelpers.BuildUserManager(ApplicationDbContextHelper.BuildTestDbContext()); _roleManager = IdentityHelpers.BuildRoleManager(ApplicationDbContextHelper.BuildTestDbContext()); _service = new DashboardService(_dbContext, _userManager); }
public SensorAssignmentServiceTest() { _dbContext = ApplicationDbContextHelper.BuildTestDbContext(); _userManager = IdentityHelpers.BuildUserManager(ApplicationDbContextHelper.BuildTestDbContext()); _service = new SensorAssignmentService(_dbContext, _userManager); }