public void LandingPageCreation() { landingPageModel = new LandingPageModel() { CityName = "London" }; }
public void Then_The_Header_Image_Is_Added(CmsContent source, string contentValue, AssetFields fields, MenuPageModel.MenuPageContent menuContent, BannerPageModel bannerContent) { //Arrange fields.File.Url = $"//{fields.File.Url}"; source.Includes.Asset = new List <Asset>() { new Asset { Sys = new AssetSys { Id = source.Items[0].Fields.HeaderImage.Sys.Id }, Fields = fields } }; ////Act var actual = new LandingPageModel().Build(source, menuContent, bannerContent); //Assert actual.MainContent.HeaderImage.Should().NotBeNull(); actual.MainContent.HeaderImage.EmbeddedResource.Id.Should().Be(source.Items[0].Fields.HeaderImage.Sys.Id); actual.MainContent.HeaderImage.EmbeddedResource.Title.Should().Be(fields.Title); actual.MainContent.HeaderImage.EmbeddedResource.FileName.Should().Be(fields.File.FileName); actual.MainContent.HeaderImage.EmbeddedResource.Url.Should().Be($"https:{fields.File.Url}"); actual.MainContent.HeaderImage.EmbeddedResource.ContentType.Should().Be(fields.File.ContentType); actual.MainContent.HeaderImage.EmbeddedResource.Size.Should().Be(fields.File.Details.Size); actual.MainContent.HeaderImage.EmbeddedResource.Description.Should().Be(fields.Description); }
public ActionResult Default() { ViewBag.PageTitle = "Aspose.3D Live Demos - Free App Solutions for 3D files manipulation"; ViewBag.MetaDescription = "Free online App to Convert 3D files including FBX, STL, OBJ, 3DS, GLTF, DRC, RVM, PDF, X, JT, DXF, PLY, 3MF & ASE. Transform them to FBX, OBJ, 3DS, DRC formats."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Project Managemen Creator & Viewer for Cloud (C# REST SDK)"; ViewBag.MetaDescription = "Enable your C#, ASP.NET & other .NET code to rapidly develop cloud-based Project Management applications to manipulate & convert MS Project & Primavera docs."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Read, Write, View & Convert Spreadsheets (via C# REST SDK)"; ViewBag.MetaDescription = "Aspose.Cells Cloud SDK for .NET allows developers to read excel spreadsheets from cloud storage, modify, view & convert them using C# or other .NET languages."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Build PDF Generator & Converter Cloud Apps (C# & .NET SDK)"; ViewBag.MetaDescription = "Aspose.PDF Cloud SDK for .NET enhances your C#, ASP.NET & other .NET applications to create, edit, merge, split, digitally sign & convert cloud PDF files."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "C# REST API to Perform 3D Modeling, Conversion (in the Cloud)"; ViewBag.MetaDescription = "Aspose.3D Cloud for cURL helps developers use easy cURL commands to create & process 3D models, objects and 3D entities (3D Box, 3D Cylinder, 3D Sphere, 3D Torus, 3D Plane) in the cloud. Perform parametric modeling of 3D objects. Extract 3D contents from a 3D PDF file. Use cURL to convert 3D objects to supports formats in the cloud."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Convert Images, Photos, Pictures Online"; ViewBag.MetaDescription = "Free online image conversion app for many popular image, photo, picture formats. Convert to PDF, PSD, JPG, GIF, SVG and others, including HTML5 Canvas."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Index() { var model = new LandingPageModel(); model.TopMessageContent = GlobalDbSettings.GetString(GlobalDbSettings.GlobalStringNames.LandingPageMessage); model.FilesList = db.Files.Where(f => f.IsLandingPage).OrderBy(f => f.Order).ThenBy(f => f.Description).ToList(); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free Apps for XPS, PS, EPS viewing | PDF and Image Conversion"; ViewBag.MetaDescription = "Platform independent Free Apps providing capabilities to view and convert XPS, PS and EPS files to PDF or Raster Image formats. No subscription required."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free Apps to View or Convert MS OneNote files to PDF, HTML, Image formats"; ViewBag.MetaDescription = "Our 100% free Apps providing the capabilities to online View Microsoft OneNote files on Desktop or Mobile. Convert to PDF, HTML, JPG, PNG, BMP, TIFF formats."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Apps, On Premise & Cloud Solutions to Process Visio Drawings"; ViewBag.MetaDescription = "Create, process & convert Microsoft Visio drawings via On Premise APIs or Cloud-based SDKs. Or use our cross-platform apps to view or convert Visio files."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Create, Edit or Convert PSD & PSB files to PDF & image formats"; ViewBag.MetaDescription = "On Premise APIs and Free Apps to edit Photoshop files. Ability to update layer properties, add watermarks, rotate, scale, Flip, Crop, Dithering, Raster Conversion."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Apps, On Premise & Cloud Solution for PDF File Formats"; ViewBag.MetaDescription = "Create PDF file manipulation applications using On Premise or Cloud APIs, or simply use cross-platform apps to view, compare, inspect or convert PDF files."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Read, write, Convert GIS files to Google Earth, GeoJSON & ESRI Shapefiles"; ViewBag.MetaDescription = "Read GPX, SHX, JSON, KML Formats and render to Google Earth, ESRI Shapefile, GeoJSON, FileGDB, KML & OSM XML. Reproject Geometries, Compute Topological Relations."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free File Format Apps - Process MS Word | PDF | Excel | PPT online"; ViewBag.MetaDescription = "Free Apps to Read, Manipulate, Convert MS Word, PDF, Excel, PowerPoint, Visio, MS Project, OneNote, Email, MSG, Barcode, CAD, 3D, GIS, HTML file formats online"; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free Apps to View AutoCAD Files | Convert to PDF or Image format"; ViewBag.MetaDescription = "Our online 100% free Apps to view AutoCAD (DWG, DXF, DWF, IFC or STL) files from anywhere. Convert to PDF, JPG, PNG, PDFA_1A, PDFA_1B, PDF_15, SVG, BMP, TIFF."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Build PowerPoint Creator & Viewer for Cloud (C# REST SDK)"; ViewBag.MetaDescription = "Aspose.Slides Cloud SDK for .NET helps you create PowerPoint & OpenOffice presentations using C#, ASP.NET etc. Cloud API to view & convert PPT, PPTX, ODP & OTP."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free C# MVC Word Document Processing APPs - aspose.app"; ViewBag.MetaDescription = "100% free apps for DOC, DOCX, DOT, DOTX, RTF, ODT, OTT, TXT, HTML, XHTML, MHTML files. View, convert, split, compare, sign, watermark, merge or redact content from Word Processing files."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "View or Convert MS Project files to PDF, XLSX, HTML, Primavera"; ViewBag.MetaDescription = "Vigorous Web Apps to View & Convert Microsoft Project files (MPP & XML) without leaving your browser. Transform to PDF, Primavera, HTML, XLSX, XPS and XML"; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Apps, On Premise & Cloud Solution for Image Processing - aspose.app"; ViewBag.MetaDescription = "Develop image processing and manipulation applications using On Premise or Cloud APIs, or simply use cross-platform apps to view, compare, inspect or convert images."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free Apps, On Premise & Cloud APIs for HTML files manipulation"; ViewBag.MetaDescription = "Read HTML EPUB or MHTML. Edit or render to PDF, Image, Markdown, MHTML. Merge HTML, EPUB or extract text & images from HTML, XHTML, MHTML, EPUB, SVG files."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Free C# MVC Excel Document Processing APPs - aspose.app"; ViewBag.MetaDescription = "Create Excel file manipulation applications using On Premise or Cloud APIs, or simply use cross-platform apps to view, compare, inspect or convert Excel files."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Apps, On Premise & Cloud Solutions to Perform OCR on Raster Images"; ViewBag.MetaDescription = "Build Optical Character Recognition (OCR) solutions via On Premise APIs or Cloud-based SDKs. Or use our simple cross-platform apps for text extraction."; var model = new LandingPageModel(this); return(View(model)); }
public ActionResult Default() { ViewBag.PageTitle = "Compress several files to create single archive or uncompress archives"; ViewBag.MetaDescription = "On premise APIs or Free Apps to compose archive, add entries or delete entries from existing archives. Encrypt using ZipCrypto or AES128, 192 and AES256."; var model = new LandingPageModel(this); return(View(model)); }
public IActionResult Default() { ViewBag.PageTitle = Resources["cadConversionPageTitle"]; ViewBag.MetaDescription = Resources["cadConversionMetaDescription"]; var model = new LandingPageModel(this); return(View(model)); }
public IActionResult Index() { List <BillboardTypeListOutputModel> billboardtype = new List <BillboardTypeListOutputModel>(); List <ProvinceOutputModel> province = new List <ProvinceOutputModel>(); LandingPageModel model = new LandingPageModel(); try { using (var client = new HttpClient()) { client.BaseAddress = new Uri(BaseAPI + "Base/"); var typeTank = client.GetAsync("GetBillboardType"); typeTank.Wait(); var results = typeTank.Result; if (results.IsSuccessStatusCode) { var content = results.Content.ReadAsStringAsync(); BillboardTypeListResponseModel billboardtypeResponse = JsonConvert.DeserializeObject <BillboardTypeListResponseModel>(content.Result); billboardtype = billboardtypeResponse.data.OrderBy(x => x.Kode).ToList(); model.BillBoardType = new List <BillboardTypeListOutputModel>(); model.BillBoardType = billboardtype; typeTank = client.PostAsync("GetProvince", null); typeTank.Wait(); results = typeTank.Result; if (results.IsSuccessStatusCode) { content = results.Content.ReadAsStringAsync(); ProvinceResponseModel provinceResponse = JsonConvert.DeserializeObject <ProvinceResponseModel>(content.Result); province = provinceResponse.data.OrderBy(x => x.Provinsi).ToList(); model.Province = new List <ProvinceOutputModel>(); model.Province = province; HttpContext.Session.SetString(Loginfrom, "MDB"); } else { province = null; ModelState.AddModelError(string.Empty, "Terjadi kesalahan server. Hubungi admin."); } } else { billboardtype = null; ModelState.AddModelError(string.Empty, "Terjadi kesalahan server. Hubungi admin."); } } } catch (Exception e) { ModelState.AddModelError(string.Empty, "Terjadi kesalahan server. Hubungi admin."); } return(View(model)); }
public void Then_If_Total_Is_Zero_Items_Returned_Then_Null_Returned(CmsContent source, MenuPageModel.MenuPageContent menuContent, BannerPageModel bannerContent) { //Arrange source.Total = 0; //Act var actual = new LandingPageModel().Build(source, menuContent, bannerContent); //Assert actual.Should().BeNull(); }
public LandingPageViewModel() { _LandingPageModel = new LandingPageModel(); MessengerInstance.Register <NotificationMessage <string> >(this, m => { if (m.Notification.Equals("LandingPageViewModel")) { DoNothing(m.Content); } }); }
public void Then_The_PageType_Is_Correctly_Set(string pageType, PageType type, CmsContent source, MenuPageModel.MenuPageContent menuContent, BannerPageModel bannerContent) { //Arrange source.Items.FirstOrDefault().Sys.ContentType.Sys.Id = pageType; //Act var actual = new LandingPageModel().Build(source, menuContent, bannerContent); //Assert actual.PageAttributes.PageType.Should().Be(type); }