public LearningServiceTestBase() { UnitOfWork = new ListUnitOfWork(new ListRepository <Category>(), new ListRepository <Flashcard>(), new ListRepository <User>(), new ListRepository <UserProgress>()); Options = new LearningServiceOptions(); Service = new LearningService(UnitOfWork, new OptionsWrapper <LearningServiceOptions>(Options)); }
public LearningService(IUnitOfWork unitOfWork, IOptions <LearningServiceOptions> optsAccessor) { _unitOfWork = unitOfWork; _opts = optsAccessor.Value; }