コード例 #1
0
        public DialogueServiceTest()
        {
            _repository = Substitute.For <IRepository>();

            IRepositoryProvider provider = new FakeRepositoryProvider(_repository);

            _service = new DialogueService(provider);
        }
コード例 #2
0
        public DialogueServiceWithDatabaseTest()
        {
            SetDatabaseEntity();
            _context = new EfContext(Database);

            IRepositoryProvider provider = new FakeRepositoryProvider(new Repository(_context));

            _service = new DialogueService(provider);
        }