Initialize properties with default values in Interaction, Prospect, and User classes

This commit is contained in:
a.beging@eas-solutions.de
2026-04-23 15:19:04 +02:00
parent aba2007481
commit dc9276e3e9
3 changed files with 9 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ namespace FoodsharingSiegen.Contracts.Entity
/// <summary>
/// Gets or sets the value of the prospect (ab)
/// </summary>
public Prospect Prospect { get; set; }
public Prospect Prospect { get; set; } = null!;
/// <summary>
/// Gets or sets the value of the prospect id (ab)
@@ -74,7 +74,7 @@ namespace FoodsharingSiegen.Contracts.Entity
/// <summary>
/// Gets or sets the value of the user (ab)
/// </summary>
public User User { get; set; }
public User User { get; set; } = null!;
/// <summary>
/// Gets or sets the value of the user id (ab)