public void BuildParametersForUpdatingTest() { List<DbParam> expectedParametersForUpdating = new List<DbParam> { new DbParam { Name = "@Id", Value = _user.Key }, new DbParam { Name = "@Username", Value = _user.Username }, new DbParam { Name = "@Email", Value = _user.Email }, new DbParam { Name = "@PasswordHash", Value = _user.PasswordHash }, new DbParam { Name = "@Salt", Value = _user.Salt } }; UsersRepository usersRepository = new UsersRepository(_dbWrapper); List<DbParam> actualParametersForUpdating = usersRepository.BuildParametersForUpdating(_user).ToList(); CollectionAssert.AreEqual(expectedParametersForUpdating, actualParametersForUpdating); }