public void BuildParametersForUpdatingTest() { List<DbParam> expectedParametersForUpdating = new List<DbParam> { new DbParam { Name = "@Id", Value = _device.Key, Type = SqlDbType.Int}, new DbParam { Name = "@Name", Value = _device.Name, Type = SqlDbType.NVarChar }, new DbParam { Name = "@TypeId", Value = _device.TypeId, Type = SqlDbType.Int }, new DbParam { Name = "@OwnerId", Value = _device.OwnerId, Type = SqlDbType.Int } }; DevicesRepository devicesRepository = new DevicesRepository(_dbWrapper); List<DbParam> actualParametersForUpdating = devicesRepository.BuildParametersForUpdating(_device).ToList(); CollectionAssert.AreEqual(expectedParametersForUpdating, actualParametersForUpdating); }