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); } }
private UserDM GetUser(string firstName, string lastName) { IUsersDataAdapter usersDataAdapter = new UsersDataAdapter(); return(usersDataAdapter.GetUserByName(firstName, lastName)); }