Make tests pass again (except not implemented ones).

This commit is contained in:
Daniel Kraus
2015-08-05 20:02:02 +02:00
parent b7fdf87ea5
commit 742a588083
4 changed files with 21 additions and 9 deletions

View File

@ -58,7 +58,7 @@ namespace zaaReloaded2.Controller
#region Constructors
public Settings()
: this(string.Empty, new List<ElementBase>())
: this(string.Empty, null)
{ }
public Settings(string name)
@ -87,6 +87,10 @@ namespace zaaReloaded2.Controller
Uid = Guid.NewGuid();
Name = name;
Elements = initialElements;
if (Elements == null)
{
Elements = new List<ElementBase>();
}
}
#endregion

View File

@ -87,7 +87,13 @@ namespace zaaReloaded2.Importer.ZaaImporter
/// Is true if the LaurisText has time stamp in the first
/// paragraph and <see cref="LabItem"/>s in the others.
/// </summary>
public bool IsValidTimePoint { get; private set; }
public bool IsValidTimePoint
{
get
{
return Items.Count > 0;
}
}
/// <summary>
/// Gets or sets the original Lauris text for this timepoint.