Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public LearningService(IUnitOfWork unitOfWork, IOptions <LearningServiceOptions> optsAccessor)
 {
     _unitOfWork = unitOfWork;
     _opts       = optsAccessor.Value;
 }