Final commit.
This commit is contained in:
25
packages/holzleitner_api/test/admin_api_test.dart
Normal file
25
packages/holzleitner_api/test/admin_api_test.dart
Normal file
@ -0,0 +1,25 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
|
||||
/// tests for AdminApi
|
||||
void main() {
|
||||
final instance = HolzleitnerApi().getAdminApi();
|
||||
|
||||
group(AdminApi, () {
|
||||
// Stößt den ERP-Import für ein Datum an und liefert die Zusammenfassung.
|
||||
//
|
||||
//Future<ImportSummary> importErp({ String date }) async
|
||||
test('test importErp', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Stößt das ERP-Rückschreiben eines bereits lokal abgeschlossenen Lieferabschlusses erneut an (idempotenter Retry, falls der automatische Push beim Abschluss fehlschlug).
|
||||
//
|
||||
//Future pushCompletion(String deliveryId) async
|
||||
test('test pushCompletion', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
18
packages/holzleitner_api/test/attachments_api_test.dart
Normal file
18
packages/holzleitner_api/test/attachments_api_test.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
|
||||
/// tests for AttachmentsApi
|
||||
void main() {
|
||||
final instance = HolzleitnerApi().getAttachmentsApi();
|
||||
|
||||
group(AttachmentsApi, () {
|
||||
// Liefert ein gerendertes Vorschaubild des Attachments (Bytes), geladen aus DOCUframe. Auflösung/Format über Query-Parameter steuerbar (`?w=&h=&q=&ext=&page=`).
|
||||
//
|
||||
//Future getAttachment(String id, { int w, int h, int q, String ext, String page }) async
|
||||
test('test getAttachment', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for CompleteDeliveryAcknowledgements
|
||||
void main() {
|
||||
final instance = CompleteDeliveryAcknowledgementsBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(CompleteDeliveryAcknowledgements, () {
|
||||
// Notiz-IDs, die zum Abschlusszeitpunkt sichtbar waren und mit-bestätigt wurden (Audit-Robustheit).
|
||||
// BuiltList<String> acknowledgedNoteIds
|
||||
test('to test the property `acknowledgedNoteIds`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Fahrzeug des Akteurs (Audit-Spur). Muss zum Account gehören.
|
||||
// String authorCarId
|
||||
test('to test the property `authorCarId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// „Anmerkungen zur Lieferung zur Kenntnis genommen.\" — Pflicht nur, wenn Notizen existieren (das prüft der Server).
|
||||
// bool notesAcknowledged
|
||||
test('to test the property `notesAcknowledged`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// „Ware im ordnungsgemäßen Zustand erhalten / Aufbau korrekt.\" — Pflicht.
|
||||
// bool receiptConfirmed
|
||||
test('to test the property `receiptConfirmed`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
36
packages/holzleitner_api/test/contact_channel_test.dart
Normal file
36
packages/holzleitner_api/test/contact_channel_test.dart
Normal file
@ -0,0 +1,36 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ContactChannel
|
||||
void main() {
|
||||
final instance = ContactChannelBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(ContactChannel, () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ContactKind kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int position
|
||||
test('to test the property `position`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sourceId
|
||||
test('to test the property `sourceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String value
|
||||
test('to test the property `value`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
9
packages/holzleitner_api/test/contact_kind_test.dart
Normal file
9
packages/holzleitner_api/test/contact_kind_test.dart
Normal file
@ -0,0 +1,9 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ContactKind
|
||||
void main() {
|
||||
|
||||
group(ContactKind, () {
|
||||
});
|
||||
}
|
||||
9
packages/holzleitner_api/test/contact_role_test.dart
Normal file
9
packages/holzleitner_api/test/contact_role_test.dart
Normal file
@ -0,0 +1,9 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ContactRole
|
||||
void main() {
|
||||
|
||||
group(ContactRole, () {
|
||||
});
|
||||
}
|
||||
61
packages/holzleitner_api/test/contact_source_test.dart
Normal file
61
packages/holzleitner_api/test/contact_source_test.dart
Normal file
@ -0,0 +1,61 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ContactSource
|
||||
void main() {
|
||||
final instance = ContactSourceBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(ContactSource, () {
|
||||
// String abteilung
|
||||
test('to test the property `abteilung`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String anrede
|
||||
test('to test the property `anrede`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String deliveryId
|
||||
test('to test the property `deliveryId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String funktion
|
||||
test('to test the property `funktion`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name1
|
||||
test('to test the property `name1`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name2
|
||||
test('to test the property `name2`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name3
|
||||
test('to test the property `name3`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ContactRole role
|
||||
test('to test the property `role`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String titel
|
||||
test('to test the property `titel`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for CreatePaymentMethodRequest
|
||||
void main() {
|
||||
final instance = CreatePaymentMethodRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(CreatePaymentMethodRequest, () {
|
||||
// Eindeutiger Programm-Identifier (z. B. `\"paypal\"`, `\"klarna\"`).
|
||||
// String code
|
||||
test('to test the property `code`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Anzeige-Name in der UI.
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for CreateServiceRequest
|
||||
void main() {
|
||||
final instance = CreateServiceRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(CreateServiceRequest, () {
|
||||
// Eindeutiger Programm-Identifier (z. B. `\"podium_setup\"`).
|
||||
// String key
|
||||
test('to test the property `key`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ServiceKind kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int maxValue
|
||||
test('to test the property `maxValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Nur bei `Numeric` sinnvoll.
|
||||
// int minValue
|
||||
test('to test the property `minValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int sortOrder
|
||||
test('to test the property `sortOrder`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
9
packages/holzleitner_api/test/credit_action_test.dart
Normal file
9
packages/holzleitner_api/test/credit_action_test.dart
Normal file
@ -0,0 +1,9 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for CreditAction
|
||||
void main() {
|
||||
|
||||
group(CreditAction, () {
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for DeliveredBelegnummernResponse
|
||||
void main() {
|
||||
final instance = DeliveredBelegnummernResponseBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(DeliveredBelegnummernResponse, () {
|
||||
// Belegnummern aller **ausgelieferten** (abgeschlossenen) Lieferungen, deren Liefermail noch **nicht versendet** wurde, aufsteigend nach Abschluss-Zeitpunkt.
|
||||
// BuiltList<String> belegnummern
|
||||
test('to test the property `belegnummern`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Anzahl der offenen (noch nicht versendeten) Belege.
|
||||
// int count
|
||||
test('to test the property `count`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Tag, nach dem gefiltert wurde (ISO `YYYY-MM-DD`), oder `\"all\"` wenn kein `day` angegeben war.
|
||||
// String day
|
||||
test('to test the property `day`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for DeliveryCreditEventRequest
|
||||
void main() {
|
||||
final instance = DeliveryCreditEventRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(DeliveryCreditEventRequest, () {
|
||||
// CreditAction action
|
||||
test('to test the property `action`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Bei `Set` Pflicht: Betrag in Cent (> 0, ≤ 15000, Vielfaches von 1000).
|
||||
// int amountCents
|
||||
test('to test the property `amountCents`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Fahrzeug des Akteurs (Audit-Spur). Muss zum Account gehören.
|
||||
// String authorCarId
|
||||
test('to test the property `authorCarId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Idempotenz-Schlüssel — pro erzeugtem Ereignis genau einmal vergeben. Ein Retry mit derselben Id wendet nichts erneut an.
|
||||
// String clientEventId
|
||||
test('to test the property `clientEventId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Bei `Set` Pflicht: Begründung.
|
||||
// String reason
|
||||
test('to test the property `reason`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for DeliveryCreditResponse
|
||||
void main() {
|
||||
final instance = DeliveryCreditResponseBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(DeliveryCreditResponse, () {
|
||||
// Aktueller Stand nach dem Ereignis — `None`, wenn (zuletzt) entfernt.
|
||||
// DeliveryCredit credit
|
||||
test('to test the property `credit`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
27
packages/holzleitner_api/test/delivery_credit_test.dart
Normal file
27
packages/holzleitner_api/test/delivery_credit_test.dart
Normal file
@ -0,0 +1,27 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for DeliveryCredit
|
||||
void main() {
|
||||
final instance = DeliveryCreditBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(DeliveryCredit, () {
|
||||
// Gutschrift-Betrag in Cent (> 0, ≤ 15000).
|
||||
// int amountCents
|
||||
test('to test the property `amountCents`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String deliveryId
|
||||
test('to test the property `deliveryId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String reason
|
||||
test('to test the property `reason`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for DeliveryServiceResponse
|
||||
void main() {
|
||||
final instance = DeliveryServiceResponseBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(DeliveryServiceResponse, () {
|
||||
// DeliveryServiceValue value
|
||||
test('to test the property `value`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for DeliveryServiceValue
|
||||
void main() {
|
||||
final instance = DeliveryServiceValueBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(DeliveryServiceValue, () {
|
||||
// bool boolValue
|
||||
test('to test the property `boolValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String deliveryId
|
||||
test('to test the property `deliveryId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int numericValue
|
||||
test('to test the property `numericValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String serviceId
|
||||
test('to test the property `serviceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
37
packages/holzleitner_api/test/import_summary_test.dart
Normal file
37
packages/holzleitner_api/test/import_summary_test.dart
Normal file
@ -0,0 +1,37 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ImportSummary
|
||||
void main() {
|
||||
final instance = ImportSummaryBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(ImportSummary, () {
|
||||
// Date date
|
||||
test('to test the property `date`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Fehlertexte je fehlgeschlagener Fahrer-Tour (z. B. unbekannter Fahrer → FK auf `accounts`, oder Validierungsfehler).
|
||||
// BuiltList<String> errors
|
||||
test('to test the property `errors`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int toursFailed
|
||||
test('to test the property `toursFailed`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int toursOk
|
||||
test('to test the property `toursOk`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int toursTotal
|
||||
test('to test the property `toursTotal`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for MarkMailSentRequest
|
||||
void main() {
|
||||
final instance = MarkMailSentRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(MarkMailSentRequest, () {
|
||||
// Belegnummern, deren Liefermail erfolgreich versendet wurde und die als versendet markiert werden sollen.
|
||||
// BuiltList<String> belegnummern
|
||||
test('to test the property `belegnummern`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for MarkMailSentResponse
|
||||
void main() {
|
||||
final instance = MarkMailSentResponseBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(MarkMailSentResponse, () {
|
||||
// Anzahl frisch markierter (vorher offener) Belege. Bereits markierte zählen nicht mit (idempotent).
|
||||
// int marked
|
||||
test('to test the property `marked`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for PaymentMethodResponse
|
||||
void main() {
|
||||
final instance = PaymentMethodResponseBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(PaymentMethodResponse, () {
|
||||
// PaymentMethod method
|
||||
test('to test the property `method`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
38
packages/holzleitner_api/test/payment_method_test.dart
Normal file
38
packages/holzleitner_api/test/payment_method_test.dart
Normal file
@ -0,0 +1,38 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for PaymentMethod
|
||||
void main() {
|
||||
final instance = PaymentMethodBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(PaymentMethod, () {
|
||||
// bool active
|
||||
test('to test the property `active`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Stabiler Programm-Identifier — z. B. `\"cash\"`, `\"ec_card\"`. Eindeutig pro Eintrag. Wird vom Aufrufer beim Anlegen gesetzt.
|
||||
// String code
|
||||
test('to test the property `code`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime createdAt
|
||||
test('to test the property `createdAt`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Display-Name in der UI — frei via PATCH änderbar.
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
39
packages/holzleitner_api/test/payment_methods_api_test.dart
Normal file
39
packages/holzleitner_api/test/payment_methods_api_test.dart
Normal file
@ -0,0 +1,39 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
|
||||
/// tests for PaymentMethodsApi
|
||||
void main() {
|
||||
final instance = HolzleitnerApi().getPaymentMethodsApi();
|
||||
|
||||
group(PaymentMethodsApi, () {
|
||||
// Legt eine neue Zahlungsmethode an.
|
||||
//
|
||||
//Future<PaymentMethodResponse> createPaymentMethod(CreatePaymentMethodRequest createPaymentMethodRequest) async
|
||||
test('test createPaymentMethod', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Hartes Löschen. `409 Conflict`, wenn die Methode von einer Lieferung referenziert wird — der Admin soll dann den `active = false`-Pfad nutzen.
|
||||
//
|
||||
//Future deletePaymentMethod(String id) async
|
||||
test('test deletePaymentMethod', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Listet die Zahlungsmethoden.
|
||||
//
|
||||
//Future<PaymentMethodsList> listPaymentMethods({ bool includeInactive }) async
|
||||
test('test listPaymentMethods', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Patcht Anzeige-Name und/oder Aktiv-Flag.
|
||||
//
|
||||
//Future<PaymentMethodResponse> updatePaymentMethod(String id, UpdatePaymentMethodRequest updatePaymentMethodRequest) async
|
||||
test('test updatePaymentMethod', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
16
packages/holzleitner_api/test/payment_methods_list_test.dart
Normal file
16
packages/holzleitner_api/test/payment_methods_list_test.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for PaymentMethodsList
|
||||
void main() {
|
||||
final instance = PaymentMethodsListBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(PaymentMethodsList, () {
|
||||
// BuiltList<PaymentMethod> methods
|
||||
test('to test the property `methods`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
9
packages/holzleitner_api/test/service_kind_test.dart
Normal file
9
packages/holzleitner_api/test/service_kind_test.dart
Normal file
@ -0,0 +1,9 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ServiceKind
|
||||
void main() {
|
||||
|
||||
group(ServiceKind, () {
|
||||
});
|
||||
}
|
||||
16
packages/holzleitner_api/test/service_response_test.dart
Normal file
16
packages/holzleitner_api/test/service_response_test.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ServiceResponse
|
||||
void main() {
|
||||
final instance = ServiceResponseBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(ServiceResponse, () {
|
||||
// Service service
|
||||
test('to test the property `service`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
51
packages/holzleitner_api/test/service_test.dart
Normal file
51
packages/holzleitner_api/test/service_test.dart
Normal file
@ -0,0 +1,51 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for Service
|
||||
void main() {
|
||||
final instance = ServiceBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(Service, () {
|
||||
// bool active
|
||||
test('to test the property `active`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String key
|
||||
test('to test the property `key`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ServiceKind kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int maxValue
|
||||
test('to test the property `maxValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int minValue
|
||||
test('to test the property `minValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int sortOrder
|
||||
test('to test the property `sortOrder`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
39
packages/holzleitner_api/test/services_api_test.dart
Normal file
39
packages/holzleitner_api/test/services_api_test.dart
Normal file
@ -0,0 +1,39 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
|
||||
/// tests for ServicesApi
|
||||
void main() {
|
||||
final instance = HolzleitnerApi().getServicesApi();
|
||||
|
||||
group(ServicesApi, () {
|
||||
// Legt einen neuen Service an.
|
||||
//
|
||||
//Future<ServiceResponse> createService(CreateServiceRequest createServiceRequest) async
|
||||
test('test createService', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Hartes Löschen. `409 Conflict`, wenn der Service noch von einer Lieferung referenziert wird — dann stattdessen deaktivieren.
|
||||
//
|
||||
//Future deleteService(String id) async
|
||||
test('test deleteService', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Listet die Services (sortiert nach `sortOrder`).
|
||||
//
|
||||
//Future<ServicesList> listServices({ bool includeInactive }) async
|
||||
test('test listServices', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Patcht Name/Grenzen/Aktiv-Flag/Sortierung. `kind` ist nicht änderbar.
|
||||
//
|
||||
//Future<ServiceResponse> updateService(String id, UpdateServiceRequest updateServiceRequest) async
|
||||
test('test updateService', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
16
packages/holzleitner_api/test/services_list_test.dart
Normal file
16
packages/holzleitner_api/test/services_list_test.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for ServicesList
|
||||
void main() {
|
||||
final instance = ServicesListBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(ServicesList, () {
|
||||
// BuiltList<Service> services
|
||||
test('to test the property `services`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for SetDeliveryServiceRequest
|
||||
void main() {
|
||||
final instance = SetDeliveryServiceRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(SetDeliveryServiceRequest, () {
|
||||
// String authorCarId
|
||||
test('to test the property `authorCarId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool boolValue
|
||||
test('to test the property `boolValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int numericValue
|
||||
test('to test the property `numericValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
27
packages/holzleitner_api/test/sync_contact_channel_test.dart
Normal file
27
packages/holzleitner_api/test/sync_contact_channel_test.dart
Normal file
@ -0,0 +1,27 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for SyncContactChannel
|
||||
void main() {
|
||||
final instance = SyncContactChannelBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(SyncContactChannel, () {
|
||||
// ContactKind kind
|
||||
test('to test the property `kind`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// 1-basiert: spiegelt ERP-Spaltenposition (Telefon → 1, Telefon2 → 2, …).
|
||||
// int position
|
||||
test('to test the property `position`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String value
|
||||
test('to test the property `value`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
56
packages/holzleitner_api/test/sync_contact_source_test.dart
Normal file
56
packages/holzleitner_api/test/sync_contact_source_test.dart
Normal file
@ -0,0 +1,56 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for SyncContactSource
|
||||
void main() {
|
||||
final instance = SyncContactSourceBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(SyncContactSource, () {
|
||||
// String abteilung
|
||||
test('to test the property `abteilung`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String anrede
|
||||
test('to test the property `anrede`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// BuiltList<SyncContactChannel> channels
|
||||
test('to test the property `channels`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String funktion
|
||||
test('to test the property `funktion`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name1
|
||||
test('to test the property `name1`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name2
|
||||
test('to test the property `name2`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name3
|
||||
test('to test the property `name3`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ContactRole role
|
||||
test('to test the property `role`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String titel
|
||||
test('to test the property `titel`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for UpdateDeliveryNoteRequest
|
||||
void main() {
|
||||
final instance = UpdateDeliveryNoteRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(UpdateDeliveryNoteRequest, () {
|
||||
// Object-Storage-Key oder URL eines vorab hochgeladenen Bildes.
|
||||
// String imageAttachment
|
||||
test('to test the property `imageAttachment`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String text
|
||||
test('to test the property `text`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for UpdatePaymentMethodRequest
|
||||
void main() {
|
||||
final instance = UpdatePaymentMethodRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(UpdatePaymentMethodRequest, () {
|
||||
// Wenn gesetzt: aktiv/inaktiv. Inaktive Methoden bleiben für historische Lieferungen referenzierbar, tauchen aber im Default-Listing nicht auf.
|
||||
// bool active
|
||||
test('to test the property `active`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Wenn gesetzt: neuer Anzeige-Name.
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:holzleitner_api/holzleitner_api.dart';
|
||||
|
||||
// tests for UpdateServiceRequest
|
||||
void main() {
|
||||
final instance = UpdateServiceRequestBuilder();
|
||||
// TODO add properties to the builder and call build()
|
||||
|
||||
group(UpdateServiceRequest, () {
|
||||
// bool active
|
||||
test('to test the property `active`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int maxValue
|
||||
test('to test the property `maxValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int minValue
|
||||
test('to test the property `minValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int sortOrder
|
||||
test('to test the property `sortOrder`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user