Example #1
0
        public string Title()
        {
            var t = new TitleBuilder();

            t.Append(ProductSku != null ? Product.Title() : "Addition");
            t.Append(" for ").Append(Order != null? Order.CustomerName: "Customer");
            return(t.ToString());
        }
Example #2
0
        public string Title()
        {
            var t = new TitleBuilder();

            t.Append(DrinkSku != null ? Drink.Title() : "Order");
            t.Append(" for ").Append(CustomerName);
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(Line1);
            t.Append(",", CountryIsDefaultCountry() ? Line2 : ISOCode);
            return(t.ToString());
        }
        //public IClock Clock { set; protected get; }
        #endregion

        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(ParentAction);
            if (Stage == Stages.InProcess)
            {
                t.Append(" step", StepNumber);
            }
            else
            {
                t.Append(Stage);
            }
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("Action:").Append(Action);
            return(t.ToString());
        }
        // This region should contain properties to hold references to any services required by the
        // object.  Use the 'injs' shortcut to add a new service; 'injc' to add an injected Container

        #endregion

        public string Title()
        {
            var t = new TitleBuilder();

            t.Append(Details);
            return(t.ToString());
        }
Example #7
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(Country).Append("+").Concat(CountryCallingCode);
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(EmailAddress).Append(Description);
            return(t.ToString());
        }
Example #9
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("Update:").Append(this.Object.ToString());
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("DomainEntity");
            return(t.ToString());
        }
Example #11
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(Code).Append(" -", Name);
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(NumberToDial(true, Cluster.Countries.Api.AppSettings.DefaultCountryISOCode()));
            return(t.ToString());
        }
Example #13
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("Task #").Append(Id);
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("Create & Save:").Append(this.Object.GetType().GetProxiedType().Name);
            return(t.ToString());
        }
Example #15
0
        // This region should contain properties to hold references to any services required by the
        // object.  Use the 'injs' shortcut to add a new service; 'injc' to add an injected Container

        #endregion

        public string Title()
        {
            var t = new TitleBuilder();

            t.Append(Type).AppendSpace().Append(Name);
            return(t.ToString());
        }
Example #16
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(WhenRun);
            return(t.ToString());
        }
Example #17
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(FormCode);
            return(t.ToString());
        }
Example #18
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("Email Attachment");
            return(t.ToString());
        }
Example #19
0
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append(Name).Append(" -", Description);
            return(t.ToString());
        }
        public string Title()
        {
            var t = new TitleBuilder();

            t.Append(this.Description);
            return(t.ToString());
        }
        public override string ToString()
        {
            TitleBuilder t = new TitleBuilder();

            t.Append("Balance");
            return(t.ToString());
        }
        public void EnumAsArgumentWithMultipleWordsFormatted()
        {
            var t = new TitleBuilder();

            t.Append(Sex.NotSpecified);

            Assert.AreEqual("Not Specified", t.ToString());
        }
        public void EnumAsArgumentWithSingleWord()
        {
            var t = new TitleBuilder();

            t.Append(Sex.Female);

            Assert.AreEqual("Female", t.ToString());
        }
        public virtual string AsSingleLine()
        {
            var tb = new TitleBuilder();

            Append4Lines(tb);
            tb.Append(",", Country);
            return(tb.ToString());
        }
Example #25
0
 public void TestAppendAddsTextAndSpace()
 {
     builder.Append("added");
     AssertTitleIs("Text added");
 }
 protected virtual void Append4Lines(TitleBuilder tb)
 {
     tb.Append(Line1).Append(",", Line2).Append(", ", Line3).Append(",", Line4).Append(",", Line5);
 }
Example #27
0
 public string Title() {
     var t = new TitleBuilder();
     t.Append("FooBar");
     return t.ToString();
 }
        public void EnumAsArgumentWithSingleWord() {
            var t = new TitleBuilder();
            t.Append(Sex.Female);

            Assert.AreEqual("Female", t.ToString());
        }
 public void TestAppendAddsTextWithJoiner()
 {
     builder.Append("+", "1Add");
     builder.Append("+", "2Add");
     AssertTitleIs("1Add+ 2Add");
 }
        public void EnumAsArgumentWithMultipleWordsFormatted() {
            var t = new TitleBuilder();
            t.Append(Sex.NotSpecified);

            Assert.AreEqual("Not Specified", t.ToString());
        }