private static void AssertSectionMandatoryAndComplete(
     DashboardSection section,
     bool shouldBeMandatory,
     bool shouldBeComplete)
 {
     section.Status.Should().Be(shouldBeComplete ? "COMPLETE" : "INCOMPLETE");
     section.Requirement.Should().Be(shouldBeMandatory ? "Mandatory" : "Optional");
 }
示例#2
0
 public NativeDesktopSections(IClientApplication clientApplication)
 {
     OperatingSystems      = DashboardSection.Mandatory(clientApplication.IsNativeDesktopOperatingSystemsComplete());
     ConnectionDetails     = DashboardSection.Mandatory(clientApplication.IsNativeDesktopConnectionDetailsComplete());
     MemoryAndStorage      = DashboardSection.Mandatory(clientApplication.IsNativeDesktopMemoryAndStorageComplete());
     ThirdParty            = DashboardSection.Optional(clientApplication.IsNativeDesktopThirdPartyComplete());
     HardwareRequirements  = DashboardSection.Optional(!string.IsNullOrWhiteSpace(clientApplication?.NativeDesktopHardwareRequirements));
     AdditionalInformation = DashboardSection.Optional(!string.IsNullOrWhiteSpace(clientApplication?.NativeDesktopAdditionalInformation));
 }
 public NativeMobileSections(IClientApplication clientApplication)
 {
     MobileOperatingSystems             = DashboardSection.Mandatory(clientApplication.IsNativeMobileOperatingSystemsComplete());
     MobileFirst                        = DashboardSection.Mandatory(clientApplication.IsNativeMobileFirstComplete());
     MobileMemoryStorage                = DashboardSection.Mandatory(clientApplication.IsNativeMobileMemoryAndStorageComplete());
     MobileConnectionDetails            = DashboardSection.Optional(clientApplication.IsMobileConnectionDetailsComplete());
     MobileComponentsDeviceCapabilities = DashboardSection.Optional(false);
     MobileHardwareRequirements         = DashboardSection.Optional(!string.IsNullOrWhiteSpace(clientApplication?.NativeMobileHardwareRequirements));
     MobileThirdPartySection            = DashboardSection.Optional(clientApplication.IsMobileThirdPartyComplete());
     MobileAdditionalInformation        = DashboardSection.Optional(clientApplication.IsNativeMobileAdditionalInformationComplete());
 }