示例#1
0
        public void CanGetUserByName()
        {
            try
            {
                string firstName = "Dale";
                string lastName  = "Cooper";

                IUsersDataAdapter usersDataAdapter = new UsersDataAdapter();

                UserDM results = usersDataAdapter.GetUserByName(firstName, lastName);

                Assert.IsTrue(results != null);

                Assert.IsTrue(results.FirstName == firstName);
                Assert.IsTrue(results.LastName == lastName);
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }
        }
示例#2
0
        private UserDM GetUser(string firstName, string lastName)
        {
            IUsersDataAdapter usersDataAdapter = new UsersDataAdapter();

            return(usersDataAdapter.GetUserByName(firstName, lastName));
        }