Beispiel #1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="ClientApplicationTypesSubSections"/> class.
        /// </summary>
        /// <param name="clientApplication"></param>
        public ClientApplicationTypesSubSections(IClientApplication clientApplication)
        {
            HashSet <string> clientApplicationTypes = clientApplication?.ClientApplicationTypes ?? new HashSet <string>();

            SetIfSelected("browser-based", clientApplicationTypes,
                          () => BrowserBasedSection = DashboardSection.Mandatory(clientApplication.IsBrowserBasedComplete()));
            SetIfSelected("native-mobile", clientApplicationTypes,
                          () => NativeMobileSection = DashboardSection.Mandatory(clientApplication.IsNativeMobileComplete()));
            SetIfSelected("native-desktop", clientApplicationTypes,
                          () => NativeDesktopSection = DashboardSection.Mandatory(clientApplication.IsNativeDesktopComplete()));
        }