public void Should_be_able_to_write_debug_properties() { const string expectedDebugProperties = "ContentType=content_type, ContentEncoding=content_encoding, " + "Headers=[key1=value1, key2=value2], DeliveryMode=10, Priority=3, CorrelationId=NULL, " + "ReplyTo=reply_to, Expiration=expiration, MessageId=message_id, Timestamp=123456, Type=type, " + "UserId=userid, AppId=app_id, ClusterId=cluster_id"; var stringBuilder = new StringBuilder(); var headers = new Dictionary <string, object> { { "key1", "value1" }, { "key2", "value2" } }; var properties = new MessageProperties { AppId = "app_id", ClusterId = "cluster_id", ContentEncoding = "content_encoding", ContentType = "content_type", //CorrelationId = "correlation_id", DeliveryMode = 10, Expiration = "expiration", Headers = headers, MessageId = "message_id", Priority = 3, ReplyTo = "reply_to", Timestamp = 123456, Type = "type", UserId = "userid", }; properties.ToString().ShouldEqual(expectedDebugProperties); }
public void Should_be_able_to_write_debug_properties() { const string expectedDebugProperties = "ContentType=content_type, ContentEncoding=content_encoding, " + "Headers=[key1=value1, key2=value2], DeliveryMode=10, Priority=3, CorrelationId=NULL, " + "ReplyTo=reply_to, Expiration=expiration, MessageId=message_id, Timestamp=123456, Type=type, " + "UserId=userid, AppId=app_id, ClusterId=cluster_id"; var stringBuilder = new StringBuilder(); var headers = new Dictionary<string, object> { {"key1", "value1"}, {"key2", "value2"} }; var properties = new MessageProperties { AppId = "app_id", ClusterId = "cluster_id", ContentEncoding = "content_encoding", ContentType = "content_type", //CorrelationId = "correlation_id", DeliveryMode = 10, Expiration = "expiration", Headers = headers, MessageId = "message_id", Priority = 3, ReplyTo = "reply_to", Timestamp = 123456, Type = "type", UserId = "userid", }; properties.ToString().ShouldEqual(expectedDebugProperties); }