public void BuildParametersForInsertingTest() { List<DbParam> expectedParametersForInserting = new List<DbParam> { 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> actualParametersForInserting = devicesRepository.BuildParametersForInserting(_device).ToList(); CollectionAssert.AreEqual(expectedParametersForInserting, actualParametersForInserting); }