sharp-wawi/Parts.cs

32 lines
615 B
C#
Raw Normal View History

2018-07-26 16:55:41 +02:00
using System;
using appsrv.attributes;
using sharpwawi.models;
2018-07-30 17:55:15 +02:00
using System.Collections.Generic;
2018-07-26 16:55:41 +02:00
namespace sharpwawi
{
2018-07-30 17:55:15 +02:00
public class Parts
2018-07-26 16:55:41 +02:00
{
2018-07-30 17:55:15 +02:00
public WaWi WaWi { get; }
2018-07-26 16:55:41 +02:00
2018-07-30 17:55:15 +02:00
public Parts(WaWi waWi)
2018-07-30 09:23:18 +02:00
{
2018-07-30 17:55:15 +02:00
WaWi = waWi;
2018-07-30 09:23:18 +02:00
}
2018-09-07 16:59:17 +02:00
public Part this[string key]
{
2018-07-30 17:55:15 +02:00
get => throw new KeyNotFoundException();
2018-07-30 09:23:18 +02:00
}
2018-07-26 16:55:41 +02:00
2018-09-07 16:59:17 +02:00
[PublishedMember]
public Part Create()
{
return new Part();
}
2018-07-30 17:55:15 +02:00
2018-09-07 16:59:17 +02:00
[PublishedMember]
public Part TestPart { get; } = new Part("P001-456-8765", "Der universelle Testartikel");
2018-07-26 16:55:41 +02:00
}
}