本文整理汇总了C#中FubuCore.Descriptions.Description类的典型用法代码示例。如果您正苦于以下问题:C# Description类的具体用法?C# Description怎么用?C# Description使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Description类属于FubuCore.Descriptions命名空间,在下文中一共展示了Description类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Describe
public void Describe(Description description)
{
description.Title = Spec.Name;
description.ShortDescription = "Version " + _version;
description.AddList("Dependencies", _dependencies);
}
示例2: Add
public static void Add(string name, Action<Description> configure)
{
var description = new Description();
configure(description);
_bag[name] = description;
}
示例3: SetUp
public void SetUp()
{
theType = typeof (ValidatedClass);
theRule = new SelfValidatingClassRule(theType);
theDescription = Description.For(theRule);
}
示例4:
void DescribesItself.Describe(Description description)
{
description.Title = "Chrome / " + _contentType.Name;
description.ShortDescription =
"Applies 'chrome' html around the inner behavior's output by executing the chain representing the {0} model"
.ToFormat(_contentType.Name);
}
示例5: Describe
public void Describe(Description description)
{
description.Title = "Create Packages for " + _solution.Name;
description.ShortDescription = "Version " + _version;
description.AddList("Nuspecs", _plans);
}
示例6: Describe
public void Describe(Description description)
{
description.Title = "Wrote file " + LocalFilePath;
description.Properties["ContentType"] = ContentType;
description.Properties["LocalFilePath"] = LocalFilePath;
description.Properties["DisplayName"] = DisplayName;
}
示例7: Describe
public void Describe(Description description)
{
description.ShortDescription = "Problems were found for " + _solution.Name;
var list = description.AddList("Problems", _problems);
list.Label = "Problems";
}
示例8: describes_itself
public void describes_itself()
{
var handler = new RespondWithMessageHandler<Exception>(null);
var description = new Description();
handler.Describe(description);
description.Title.ShouldNotBeNull();
}
示例9: Describe
public void Describe(Description description)
{
description.ShortDescription = "Governs the behavior and verbosity of the runtime diagnostics";
description.Properties["Tracing Level"] = TraceLevel.ToString();
description.Properties["Maximum Number of Requests to Keep"] = MaxRequests.ToString();
description.AddList("Authorization Rules for Diagnostics", AuthorizationRights);
}
示例10: Describe
public void Describe(Description description)
{
description.Title = "Stateful Saga Node";
description.ShortDescription = "Applies saga state loading and persistence within this chain";
description.Properties["State Type"] = StateType.FullName;
description.Properties["Message Type"] = MessageType.FullName;
description.AddChild("Repository", Repository);
}
示例11: Describe
public void Describe(Description description)
{
description.ShortDescription = "Lightning Queues Configuration";
description.Properties[nameof(DefaultPort)] = DefaultPort.ToString();
description.Properties[nameof(MaxDatabases)] = MaxDatabases.ToString();
description.Properties[nameof(MapSize)] = MapSize.ToString();
}
示例12: createDescription
protected override void createDescription(Description description)
{
description.ShortDescription = _token.Namespace.IsNotEmpty()
? "View {0}.{1}, Condition {2}".ToFormat(_token.Namespace, _token.Name(), ConditionType.Name)
: ToString();
description.Title = "View " + _token.Name();
}
示例13: Describe
public void Describe(Description description)
{
description.Title = "Project \"{0}\"".ToFormat(Name);
description.ShortDescription = FilePath;
var list = description.AddList("Dependencies", Dependencies);
list.Label = "Dependencies";
}
示例14:
void DescribesItself.Describe(Description description)
{
description.Title = _accessor.ToString();
if (DefaultValue != null)
{
description.Properties["DefaultValue"] = DefaultValue.ToString();
}
}
示例15: Describe
public void Describe(Description description)
{
description.Title = Name;
description.ShortDescription = Description;
if (Url.IsNotEmpty())
{
description.Properties["Url"] = Url;
}
}