public void UserAccessor_GetUserByEmail() { //Arrange: Creates an expected User which should be returned from the DB var expected = new User { Id = 1, Email = "*****@*****.**", Password = "******" }; //Act: Retrieves the User from the DB by calling the UserAccessor GetUserByEmail() method with the email var result = userAccessor.GetUserByEmail("*****@*****.**"); //Assert: Checks that the expected and result Users are equal Assert.AreEqual(expected, result, "The User was retrieved incorrectly."); }