private FriendlyMessage CreateFriendlyMessageFrom(string sender) { var message = new FriendlyMessage(); message.From = Char.IsLower(sender.First()) ? CultureInfo.CurrentCulture.TextInfo.ToTitleCase(sender.ToLower()) : sender; return(message); }
private void Send(FriendlyMessage message) { _destination.Send("From: " + message.From + Environment.NewLine + "To: " + message.To + Environment.NewLine + "Content: " + message.Content); }