Beispiel #1
0
 public static string ToDisplayText(this SausageKind sausageKind)
 {
     return(sausageKind switch
     {
         SausageKind.Woidvierdler => Resource.SausageKindWoidvierdler,
         SausageKind.Buren => Resource.SausageKindBuren,
         SausageKind.Schoafe => Resource.SausageKindSchoafe,
         SausageKind.Kaesekrainer => Resource.SausageKindKaesekrainer,
         _ => sausageKind.ToString()
     });
Beispiel #2
0
 public string ToOrderSentence()
 {
     return($"{Resource.OrderSentenceBegin} {SausageKind.ToOrderSentenceText()}, " +
            $"{CutKind.ToOrderSentenceText()}, " +
            $"{Sauce.ToOrderSentenceTextDativ()}. " +
            $"{Sauce.ToOrderSentenceTextNominativ()} {SauceTaste.ToOrderSentenceText()} {Resource.OrderSentenceAnd} {SaucePosition.ToOrderSentenceText()}. " +
            $"{Resource.OrderSentenceWith} {BreadKind.ToOrderSentenceText()} " +
            $"{Side.ToOrderSentenceText()}. " +
            $"{Resource.OrderSentenceIsItFineLikeThat}");
 }