Skip to content

Commit

Permalink
Minor bugfixes (from failing unit tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNeuroth committed Aug 12, 2021
1 parent 0d0d833 commit 6719080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Automation/PersonData.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@


using Newtonsoft.Json;
using System.Collections.Generic;

namespace Automation {
public class PersonData
{
public PersonData(int age, Gender gender, string personName) : this(age, gender, personName, null) { }

[JsonConstructor]
public PersonData(int age, Gender gender, string personName, List<TransportationPreference>? transportationPreferences)
{
Age = age;
Expand Down
2 changes: 1 addition & 1 deletion Database/Tables/Transportation/TravelRouteSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static TravelRouteSet ImportFromItem([JetBrains.Annotations.NotNull] Trav
{
// get the new AffordanceTaggingSet using the name of the old one
var affordanceTaggingSet = GetItemFromListByName(dstSim.AffordanceTaggingSets.Items,
toImport.AffordanceTaggingSet.Name);
toImport.AffordanceTaggingSet?.Name);
var loc = new TravelRouteSet(toImport.Name, null,dstSim.ConnectionString, toImport.Description, toImport.Guid, affordanceTaggingSet);
dstSim.TravelRouteSets.Items.Add(loc);
loc.SaveToDB();
Expand Down

0 comments on commit 6719080

Please sign in to comment.