public MessageControllerTest(ITestOutputHelper output) { this.output = output; lookupRepo = new FakeLookupRepository(); logger = new DivineLogger<FakeDataStore>(new FakeDataStore()); cache = new MemoryCache(new MemoryCacheOptions()); msgService = new FakeCommunicationService(); var mockContext = new MockContext<IRepository<Member>>(); membersRepo = new FakeMemberRepository(mockContext); var repositories = new DivineRepositories(attendanceRepo, lookupRepo, membersRepo, msgRepo); //divineBot = new TextDivineBot(repositories, msgService); mockContext.Arrange(x => (x.GetAllAsync())).Returns(Task.FromResult(membersList.AsQueryable())); messageCtrl = new MessageController(repositories, msgService, cache, logger, null); }
public MembersControllerTests() { //membersRepo = new FakeMemberRepository(); lookupRepo = new FakeLookupRepository(); logger = new DivineLogger<FakeDataStore>(new FakeDataStore()); }