public void Log_payer_comment_changes_for_all_clients() { var payer = _client.Payers.First(); var client1 = DataMother.TestClient(c => { c.Payers.Clear(); c.Payers.Add(payer); }); payer.Clients.Add(client1); payer.Comment += "\r\nтестовое сообщение"; payer.CheckCommentChangesAndLog(session, mailer); session.Save(payer); Flush(); var logs = new MessageQuery(LogMessageType.Stat).Execute(_client, session); var log = logs.FirstOrDefault(m => m.Message.Contains("Изменено 'Комментарий'")); Assert.That(log, Is.Not.Null, logs.Implode()); logs = new MessageQuery(LogMessageType.Stat).Execute(client1, session); log = logs.FirstOrDefault(m => m.Message.Contains("Изменено 'Комментарий'")); Assert.That(log, Is.Not.Null, logs.Implode()); }