Exemplo n.º 1
0
        private static string Print(PlayerPaymentStatus summaryStatus)
        {
            switch (summaryStatus)
            {
            case PlayerPaymentStatus.Behind:
                return("behind");

            case PlayerPaymentStatus.PaidInFull:
                return("paid");

            case PlayerPaymentStatus.Ahead:
                return("ahead");

            default:
                throw new ArgumentOutOfRangeException(nameof(summaryStatus), summaryStatus, null);
            }
        }
Exemplo n.º 2
0
 public PlayerReportSummary(PlayerPaymentStatus status, int weeksDifference)
 {
     Status          = status;
     WeeksDifference = weeksDifference;
 }