public void To_persistence_table_should_succeed() { { var table = new JannisTableA(); var persistence = TableConvert.ToPersistenceTable(JannisTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } { var table = new JannisTableB(); var persistence = TableConvert.ToPersistenceTable(JannisTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } { var table = new MoritzTable(); var persistence = TableConvert.ToPersistenceTable(MoritzTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } { var table = new ToniTable(); var persistence = TableConvert.ToPersistenceTable(ToniTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } }
public AlternateTableTests() { var startDate = new DateTime(2018, 8, 27, 0, 0, 1, DateTimeKind.Utc); var startTable = new JannisTableA(); var alternateTable = new JannisTableB(); _table = new WeeklyAlternateTable(startDate, startTable, alternateTable); }