create moduletypes in code

This commit is contained in:
2020-08-19 11:22:45 +02:00
parent 5dcf9eba2c
commit 3da0fa7b9e
11 changed files with 206 additions and 14 deletions
@@ -0,0 +1,10 @@
using System.Collections.Generic;
using zero.Core.Entities;
namespace zero.TestData
{
public class DownloadModule : Module
{
public string Name { get; set; }
}
}
@@ -0,0 +1,14 @@
using System.Collections.Generic;
using zero.Core.Entities;
namespace zero.TestData
{
public class GalleryModule : Module
{
public List<string> ImageIds { get; set; } = new List<string>();
public bool IsBigger { get; set; }
public bool IsFirstImageBigger { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using zero.Core.Entities;
namespace zero.TestData
{
public class HeadlineModule : Module
{
public string Headline { get; set; }
public string Subline { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using zero.Core.Entities;
namespace zero.TestData
{
public class RichtextModule : Module
{
public string Text { get; set; }
public bool IsBigger { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
using zero.Core.Entities;
namespace zero.TestData
{
public class TextWithImageModule : Module
{
public string Headline { get; set; }
public string Text { get; set; }
public string ImageId { get; set; }
public bool IsLeftAligned { get; set; }
}
}