Skip to content

Commit

Permalink
Attempted but failed fix to shared table bug as mentioned in bug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulspencerwilliams committed Oct 27, 2019
1 parent 251ddc7 commit 5539fd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Marketplace.Domain/ClassifiedAd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ protected override void When(object @event)
Id = new ClassifiedAdId(e.Id);
OwnerId = new UserId(e.OwnerId);
State = ClassifiedAdState.Inactive;
Title = ClassifiedAdTitle.NoTitle;
Text = ClassifiedAdText.NoText;
ClassifiedAdId = e.Id;
break;
case Events.ClassifiedAdTitleChanged e:
Expand Down
4 changes: 3 additions & 1 deletion Marketplace.Domain/ClassifiedAdText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class ClassifiedAdText

public static implicit operator string(ClassifiedAdText text) =>
text.Value;


public static ClassifiedAdText NoText = new ClassifiedAdText();

}
}
3 changes: 1 addition & 2 deletions Marketplace.Domain/ClassifiedAdTitle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ private static void CheckValidity(string value)
nameof(value));
}

public static ClassifiedAdTitle NoTitle =
new ClassifiedAdTitle();
public static ClassifiedAdTitle NoTitle = new ClassifiedAdTitle();
}
}

0 comments on commit 5539fd9

Please sign in to comment.