示例#1
0
 public AppBiz(ConfigContext configContext, IAppListService appListService, IUploadFileService uploadFileService, IMapper mapper, IAuthService authService)
 {
     _configContext     = configContext;
     _appListService    = appListService;
     _uploadFileService = uploadFileService;
     _mapper            = mapper;
     _authService       = authService;
 }
示例#2
0
        public void SetUp()
        {
            #region Initial fake data of constructor

            _configContext = new ConfigContext
            {
                McpDb              = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;",
                UploadPath         = "C:/AppOs",
                ImageEndPoint      = "http://*****:*****@$ "{AppContext.BaseDirectory.Substring(0, AppContext.BaseDirectory.IndexOf(" Wistron.AppStore.Web "))}\{@" Wistron.AppStore.Web \ Wistron.AppStore.Web \ wwwroot\unittest "}";
        public void SetUp()
        {
            _configContext = new ConfigContext
            {
                McpDb              = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;",
                UploadPath         = "C:/AppOs",
                ImageEndPoint      = "http://localhost:53322/app",
                IosDownloadAddress = "itms-services://?action=download-manifest&url="
            };

            _targetObj = new AppListService(_configContext);
        }
示例#4
0
        public void SetUp()
        {
            #region Initial fake data of constructor

            _configContext = new ConfigContext
            {
                McpDb              = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;",
                UploadPath         = "C:/AppOs",
                ImageEndPoint      = "http://*****:*****@gmail.com",
                Category       = "wistron App",
                DescriptionCh  = "App說明-中文",
                DescriptionEn  = "App說明-英文",
                LastUpdateUser = "******",
                LastUpdateDT   = DateTime.Now,
                CreateDT       = DateTime.Now,
                IsTop          = true,
                CompanyApp     = true,
                Delflag        = false,
                AppOpen        = true,
                AppUserGroup   = null
            };

            _wisAppOs = new List <WisAppOs>
            {
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.0",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = true,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.1",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = false,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.2",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = false,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.3",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = false,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.4",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = false,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.5",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = false,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                new WisAppOs
                {
                    AppOSID        = 3,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 2,
                    Version        = "1.0.1",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "Portal 2.0_20201021(Dev 0.2.2).apk",
                    Status         = true,
                    DescriptionCh  = "版本更新 0.2.1",
                    DescriptionEn  = "The version is update 0.2.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/Android/Install/0.2.2-9e5f0b8dd1bf467096272cb1c41cca1d.apk",
                    WebDownFlag    = true,
                }
            };

            _wisAppPhoto = new List <WisAppPhoto>
            {
                new WisAppPhoto
                {
                    AppPhotoID = 22,
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    AppOS      = 1,
                    FileNumber = 5,
                    FileName   = "024abd90fb4c49149156aff2d5fd99ac.png",
                    FilePath   = "PortalApp2.0/Android/Images/024abd90fb4c49149156aff2d5fd99ac.png",
                    PhotoType  = 1 // 1= Icon 圖片 2 = 一般圖片
                },
                new WisAppPhoto
                {
                    AppPhotoID = 23,
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    AppOS      = 2,
                    FileNumber = 5,
                    FileName   = "398ce584d4304c518c0cf17128fd2001.png",
                    FilePath   = "PortalApp2.0/IOS/Images/398ce584d4304c518c0cf17128fd2001.png",
                    PhotoType  = 1
                }
            };

            _downloadUrlList = new List <DownloadUrlList>
            {
                new DownloadUrlList {
                    Site = "WHQ", Url = "http://localhost:53322/app/PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist"
                },
                new DownloadUrlList {
                    Site = "WKS", Url = "http://10.66.20.108:8087/app/PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist"
                }
            };

            #endregion

            //fake service
            _appListService    = Substitute.For <IAppListService>();
            _uploadFileService = Substitute.For <IUploadFileService>();
            _authService       = Substitute.For <IAuthService>();

            _targetObj = new AppBiz(_configContext, _appListService, _uploadFileService, _mapper, _authService);
        }
        public void SetUp()
        {
            #region Initial fake data of constructor

            _configContext = new ConfigContext
            {
                McpDb              = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;",
                UploadPath         = "C:/AppOs",
                ImageEndPoint      = "http://localhost:53322/app",
                IosDownloadAddress = "itms-services://?action=download-manifest&url="
            };

            _appList = new List <AppListItem>
            {
                new AppListItem {
                    AppID       = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    AppOSID     = "22",
                    Status      = true,
                    CompanyApp  = true,
                    IsTop       = true,
                    AppName     = "Test AppName",
                    PackageName = "com.wistron.portalapp.dev",
                    Development = "MCP development",
                    CreateDT    = DateTime.Now,
                    OSType      = "IOS",
                    Version     = "1.0.0",
                    FileName    = "Portal 2.0_20201022(Dev 0.2.3).apk",
                    FilePath    = "ITSM/IOS/Install/23eb89786e364260ae789d0ec433d724.plist"
                }
            };

            _appListItem = new AppListItem
            {
                AppID       = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                AppOSID     = "22",
                Status      = false,
                CompanyApp  = true,
                IsTop       = true,
                AppName     = "Test AppName",
                PackageName = "com.wistron.portalapp.dev",
                Development = "MCP development",
                CreateDT    = DateTime.Now,
                OSType      = "IOS",
                Version     = "1.0.0",
                FileName    = "Portal 2.0_20201022(Dev 0.2.3).apk",
                FilePath    = "ITSM/IOS/Install/23eb89786e364260ae789d0ec433d724.plist"
            };

            _alreadyEnabled = new WisAppOs
            {
                AppID   = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                AppOSID = 22,
                OSType  = 1
            };

            //fake service
            _appListService    = Substitute.For <IAppListService>();
            _uploadFileService = Substitute.For <IUploadFileService>();
            _mapper            = Substitute.For <IMapper>();
            _authService       = Substitute.For <IAuthService>();

            #endregion

            _targetObj = new AppBiz(_configContext, _appListService, _uploadFileService, _mapper, _authService);
        }
        public void SetUp()
        {
            #region Initial fake data of constructor

            _configContext = new ConfigContext
            {
                McpDb              = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;",
                UploadPath         = "C:/AppOs",
                ImageEndPoint      = "http://*****:*****@gmail.com",
                Category         = "wistron_app",
                DescriptionCh    = "Test",
                DescriptionEn    = "Test",
                AppOpen          = true,
                AppUserGroup     = "",
                AppUserGroupName = ""
            };

            _inSideOrOutSideApp = new List <InSideOrOutSideApp>
            {
                new InSideOrOutSideApp
                {
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc1",
                    AppName    = "Test AppName1",
                    CompanyApp = "Inside App",
                    IsTopCount = 1
                },
                new InSideOrOutSideApp
                {
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc2",
                    AppName    = "Test AppName2",
                    CompanyApp = "Inside App",
                    IsTopCount = 1
                },
                new InSideOrOutSideApp
                {
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc3",
                    AppName    = "Test AppName3",
                    CompanyApp = "Outside App",
                    IsTopCount = 1
                },
                new InSideOrOutSideApp
                {
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc4",
                    AppName    = "Test AppName4",
                    CompanyApp = "Outside App",
                    IsTopCount = 1
                },
            };

            _wisApp = new WisAppList
            {
                AppName       = "Test AppName",
                AppNameEn     = "Test AppName",
                Development   = "MCP Developer",
                Email         = "*****@*****.**",
                Category      = "wistron_app",
                DescriptionCh = "Test",
                DescriptionEn = "Test",
                AppUserGroup  = "1,2"
            };

            _wisDefineGroups = new List <WisDefineGroup>
            {
                new WisDefineGroup
                {
                    GroupID        = "1",
                    GroupName      = "ePaper",
                    SelectGroup    = "1",
                    GroupInclude   = "",
                    SelectAccount  = "2",
                    AccountInclude = "9012016,9303064"
                },
                new WisDefineGroup
                {
                    GroupID        = "2",
                    GroupName      = "WistronArk",
                    SelectGroup    = "1",
                    GroupInclude   = "8177818",
                    SelectAccount  = "1",
                    AccountInclude = "10610056,10704054"
                }
            };

            #endregion

            //fake service
            _appListService    = Substitute.For <IAppListService>();
            _uploadFileService = Substitute.For <IUploadFileService>();
            _authService       = Substitute.For <IAuthService>();

            _targetObj = new AppBiz(_configContext, _appListService, _uploadFileService, _mapper, _authService);
        }
示例#7
0
        public void SetUp()
        {
            #region Initial fake data of constructor

            _configContext = new ConfigContext
            {
                McpDb              = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;",
                UploadPath         = "C:/AppOs",
                ImageEndPoint      = "http://*****:*****@gmail.com",
                Category       = "wistron App",
                DescriptionCh  = "App說明-中文",
                DescriptionEn  = "App說明-英文",
                LastUpdateUser = "******",
                LastUpdateDT   = DateTime.Now,
                CreateDT       = DateTime.Now,
                IsTop          = true,
                CompanyApp     = true,
                Delflag        = false,
                AppOpen        = true,
                AppUserGroup   = "1, 2"
            };

            _wisAppOs = new List <WisAppOs>
            {
                //以下為 IOS
                // Status 為啟用
                new WisAppOs
                {
                    AppOSID        = 2,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.1",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = true,
                    DescriptionCh  = "版本更新 1.0.1",
                    DescriptionEn  = "The version is update 1.0.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },
                // Status 為不啟用
                new WisAppOs
                {
                    AppOSID        = 3,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 1,
                    Version        = "1.0.0",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    Status         = false,
                    DescriptionCh  = "版本更新 1.0.0",
                    DescriptionEn  = "The version is update 1.0.0",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    WebDownFlag    = true,
                },

                //以下為 Android
                //Status 為啟用
                new WisAppOs
                {
                    AppOSID        = 8,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 2,
                    Version        = "1.0.1",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "Portal 2.0_20201021(Dev 0.2.2).apk",
                    Status         = true,
                    DescriptionCh  = "版本更新 1.0.1",
                    DescriptionEn  = "The version is update 1.0.1",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/Android/Install/0.2.2-9e5f0b8dd1bf467096272cb1c41cca1d.apk",
                    WebDownFlag    = true,
                },
                //Status 為不啟用
                new WisAppOs
                {
                    AppOSID        = 9,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    OSType         = 2,
                    Version        = "1.0.0",
                    PackageName    = "com.wistron.portalapp.dev",
                    FileName       = "Portal 2.0_20201021(Dev 0.2.2).apk",
                    Status         = false,
                    DescriptionCh  = "版本更新 1.0.0",
                    DescriptionEn  = "The version is update 1.0.0",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now,
                    DelFlag        = false,
                    FilePath       = "PortalApp2.0/Android/Install/0.2.2-9e5f0b8dd1bf467096272cb1c41cca1d.apk",
                    WebDownFlag    = true,
                }
            };

            _wisAppPhoto = new List <WisAppPhoto>
            {
                new WisAppPhoto
                {
                    AppPhotoID = 22,
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    AppOS      = 1,
                    FileNumber = 5,
                    FileName   = "024abd90fb4c49149156aff2d5fd99ac.png",
                    FilePath   = "PortalApp2.0/Android/Images/024abd90fb4c49149156aff2d5fd99ac.png",
                    PhotoType  = 1 // 1= Icon 圖片 2 = 一般圖片
                },
                new WisAppPhoto
                {
                    AppPhotoID = 23,
                    AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    AppOS      = 2,
                    FileNumber = 5,
                    FileName   = "398ce584d4304c518c0cf17128fd2001.png",
                    FilePath   = "PortalApp2.0/IOS/Images/398ce584d4304c518c0cf17128fd2001.png",
                    PhotoType  = 1
                }
            };

            _wisDefineGroup = new List <WisDefineGroup>
            {
                new WisDefineGroup
                {
                    GroupID        = "1",
                    GroupName      = "WZS All users",
                    SelectGroup    = "1",
                    GroupInclude   = "A33,A13,A10",
                    SelectAccount  = "1",
                    AccountInclude = "10609123,200503036,2008L0323"
                },
                new WisDefineGroup
                {
                    GroupID        = "2",
                    GroupName      = "ML10-Dept",
                    SelectGroup    = "2",
                    GroupInclude   = "ML1500,ML1400,ML1100",
                    SelectAccount  = "1",
                    AccountInclude = ""
                }
            };

            _wisAppOsOthers = new List <WisAppOsOther>
            {
                new WisAppOsOther
                {
                    AppOtherID     = 88,
                    AppID          = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                    AppOsID        = 2,
                    Site           = "WKS",
                    OSType         = 1,
                    Version        = "1.0.1",
                    FileName       = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                    FilePath       = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                    LastUpdateUser = "******",
                    LastUpdateDT   = DateTime.Now,
                    CreateDT       = DateTime.Now
                }
            };

            _iosWisAppOsOthers = new List <WisAppOsOther>();

            _androidWisAppOsOthers = new List <WisAppOsOther>();

            _appOsInfo = new AppOsInfo
            {
                AppID         = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                AppOSID       = 2,
                OSType        = DeviceType.Ios,
                AppName       = "Test AppName",
                AppNameEn     = "Test AppName",
                PackageName   = "com.wistron.portalapp.dev",
                Version       = "1,0.1",
                FileName      = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                FilePath      = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                Status        = true,
                WebDownFlag   = true,
                DescriptionCh = "版本更新 1.0.1",
                DescriptionEn = "The version is update 1.0.1",
                CreateDT      = DateTime.Now,
                LastUpdateDT  = DateTime.Now,
                AppOsHistory  = new List <AppOsInfo>
                {
                    new AppOsInfo
                    {
                        AppID         = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                        AppOSID       = 3,
                        OSType        = 1,
                        AppName       = "Test AppName",
                        AppNameEn     = "Test AppName",
                        PackageName   = "com.wistron.portalapp.dev",
                        Version       = "1,0.0",
                        FileName      = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                        FilePath      = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                        Status        = false,
                        WebDownFlag   = true,
                        DescriptionCh = "版本更新 1.0.0",
                        DescriptionEn = "The version is update 1.0.0",
                        CreateDT      = DateTime.Now,
                        LastUpdateDT  = DateTime.Now,
                    },
                    new AppOsInfo
                    {
                        AppID         = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                        AppOSID       = 2,
                        OSType        = 1,
                        AppName       = "Test AppName",
                        AppNameEn     = "Test AppName",
                        PackageName   = "com.wistron.portalapp.dev",
                        Version       = "1,0.1",
                        FileName      = "PortalApp2.0/IOS/Install/0.2.1-ef04db152ccd4d1893998ec1f07fcc06.ipa",
                        FilePath      = "PortalApp2.0/IOS/Install/b2fcbfb55f5e4aa4a75a40e5ea09b514.plist",
                        Status        = true,
                        WebDownFlag   = true,
                        DescriptionCh = "版本更新 1.0.1",
                        DescriptionEn = "The version is update 1.0.1",
                        CreateDT      = DateTime.Now,
                        LastUpdateDT  = DateTime.Now,
                    }
                },
                Photo = new List <AppPhotoContent>
                {
                    new AppPhotoContent
                    {
                        AppID      = "4beedc78-0d31-496e-bb9c-81a79c9c6bc6",
                        AppOS      = 1,
                        FileNumber = 5,
                        FileName   = "024abd90fb4c49149156aff2d5fd99ac.png",
                        FilePath   = "PortalApp2.0/Android/Images/024abd90fb4c49149156aff2d5fd99ac.png",
                        PhotoType  = 1  // 1= Icon 圖片 2 = 一般圖片
                    }
                }
            };

            #endregion

            //fake service
            _appListService    = Substitute.For <IAppListService>();
            _uploadFileService = Substitute.For <IUploadFileService>();
            _authService       = Substitute.For <IAuthService>();

            _targetObj = new AppBiz(_configContext, _appListService, _uploadFileService, _mapper, _authService);
        }