public static string DisplayName(this SerialisedItem @this) => @this.ItemNumber + " " + @this.Name + " SN: " + @this.SerialNumber;
public static PurchaseOrderItemBuilder WithSerializedPartDefaults(this PurchaseOrderItemBuilder @this, Part unifiedGood, SerialisedItem serialisedItem) { var faker = @this.Session.Faker(); @this.WithDescription(faker.Lorem.Sentences(2)); @this.WithComment(faker.Lorem.Sentence()); @this.WithInternalComment(faker.Lorem.Sentence()); @this.WithInvoiceItemType(new InvoiceItemTypes(@this.Session).ProductItem); @this.WithPart(unifiedGood); @this.WithAssignedUnitPrice(faker.Random.UInt(5, 10)); @this.WithSerialisedItem(serialisedItem); @this.WithQuantityOrdered(1); @this.WithAssignedDeliveryDate(@this.Session.Now().AddDays(5)); @this.WithShippingInstruction(faker.Lorem.Sentences(3)); @this.WithMessage(faker.Lorem.Sentence()); return(@this); }