public void BuildParametersForUpdatingTest()
        {
            List<DbParam> expectedParametersForUpdating = new List<DbParam>
                       {
                           new DbParam {Name = "@Id", Value = _message.Key},
                           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> actualParametersForUpdating = repository.BuildParametersForUpdating(_message).ToList();

            CollectionAssert.AreEqual(expectedParametersForUpdating, actualParametersForUpdating);
        }