public void BuildParametersForInsertingTest() { List<DbParam> expectedParametersForInserting = new List<DbParam> { new DbParam {Name = "@MessageText", Value = _message.MessageText}, new DbParam {Name = "@FromId", Value = _message.FromId}, new DbParam {Name = "@ToId", Value = _message.ToId} }; MessagesRepository repository = new MessagesRepository(_dbWrapper); List<DbParam> actualParametersForInserting = repository.BuildParametersForInserting(_message).ToList(); CollectionAssert.AreEqual(expectedParametersForInserting, actualParametersForInserting); }