示例#1
0
 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);
     }
 }
示例#2
0
        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);
            }
        }