public DialogueServiceTest() { _repository = Substitute.For <IRepository>(); IRepositoryProvider provider = new FakeRepositoryProvider(_repository); _service = new DialogueService(provider); }
public DialogueServiceWithDatabaseTest() { SetDatabaseEntity(); _context = new EfContext(Database); IRepositoryProvider provider = new FakeRepositoryProvider(new Repository(_context)); _service = new DialogueService(provider); }