예제 #1
0
        public void GetByID_Flow_User()
        {
            var id    = 1;
            var users = new List <User> {
                new User {
                    Id = id
                }
            }.AsQueryable();

            var mockSet = MockHelper.MockDbSet(users);

            var result = UserExtension.GetById(mockSet.Object, id);

            Assert.AreEqual(id, result.Id);
        }