public void UsersPropertyTest() { using (var context = new FakeContextTest(new DbContextOptionsBuilder().Options)) { var store = new ChatStore <string, UserTest, FakeContextTest, Conversation, Attendee, Message, NotificationConnection>(context); var users = store.Users; Assert.NotNull(users); Assert.IsAssignableFrom <DbSet <UserTest> >(users); } }
public void UsersPropertyTest() { ServiceCollection services = GetServicesCollection <FakeContextTest>(); using (var context = new FakeContextTest(services.BuildServiceProvider())) { var store = new ChatStore <string, UserTest, FakeContextTest, Conversation, Attendee, Message, NotificationConnection>(context); var users = store.Users; Assert.NotNull(users); Assert.IsAssignableFrom <DbSet <UserTest> >(users); } }