コード例 #1
0
        public void GetDataObjects()
        {
            int    expectedRead = _faker.Random.Int(1, 10);
            string sql          = $"Select Top {expectedRead} * From Employee";

            _manager.Connection.Open();

            IEnumerable <Employee> employees = new SqlExecutor(_factory, _manager).GetDataObjects <Employee>(sql, CommandType.Text, null);


            Assert.IsTrue(expectedRead == employees.Count());
        }