Update Aircraft.cs

This commit is contained in:
Meysam Hadeli 2023-06-02 16:59:42 +03:30 committed by GitHub
parent 54a0cb282f
commit b70a6568dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,9 +7,9 @@ using ValueObjects;
public record Aircraft : Aggregate<AircraftId>
{
public Name Name { get; private set; }
public Model Model { get; private set; }
public ManufacturingYear ManufacturingYear { get; private set; }
public Name Name { get; private set; } = default!;
public Model Model { get; private set; } = default!;
public ManufacturingYear ManufacturingYear { get; private set; } = default!;
public static Aircraft Create(AircraftId id, Name name, Model model, ManufacturingYear manufacturingYear, bool isDeleted = false)
{