コード例 #1
0
        public static GemeenteStatus ConvertFromMunicipalityStatus(this MunicipalityStatus status)
        {
            switch (status)
            {
            case MunicipalityStatus.Retired:
                return(GemeenteStatus.Gehistoreerd);

            default:
            case MunicipalityStatus.Current:
                return(GemeenteStatus.InGebruik);
            }
        }
コード例 #2
0
 private void When(MunicipalityBecameCurrent @event)
 {
     MunicipalityStatus = MunicipalityStatus.Current;
 }
コード例 #3
0
 private void When(MunicipalityWasRetired @event)
 {
     MunicipalityStatus = MunicipalityStatus.Retired;
 }