Weighing: Differentiate between scale and terminal
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Tests.UnitTests.DocumentTests {
|
||||
1 Grüner Veltliner Qualitätswein 73 15,0 3 219
|
||||
Herkunft: Österreich / Weinland / Niederösterreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Waage: 1, ID: 321 – 09:02, 01.10.2020
|
||||
Waage/Terminal: ?/1, ID: 321 – 09:02, 01.10.2020
|
||||
Brutto: 3 219 kg – Tara: 0 kg – Netto: 3 219 kg – gerebelt gewogen
|
||||
"""));
|
||||
});
|
||||
@@ -49,13 +49,13 @@ namespace Tests.UnitTests.DocumentTests {
|
||||
1 Grüner Veltliner Qualitätswein 82 16,7 4 002
|
||||
Herkunft: Österreich / Weinland / Niederösterreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("""
|
||||
2 Grüner Veltliner Qualitätswein 75 15,3 481
|
||||
Herkunft: Österreich / Weinland / Niederösterreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("Gesamt: 81 16,5 4 483"));
|
||||
});
|
||||
@@ -80,19 +80,19 @@ namespace Tests.UnitTests.DocumentTests {
|
||||
1 Grüner Veltliner Wein 75 15,4 2 561
|
||||
Herkunft: Österreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("""
|
||||
2 Grüner Veltliner Kabinett Wein 87 17,6 3 129
|
||||
Herkunft: Österreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("""
|
||||
3 Grüner Veltliner Wein 79 16,1 1 280
|
||||
Herkunft: Österreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("Gesamt: 81 16,5 6 970"));
|
||||
});
|
||||
@@ -118,14 +118,14 @@ namespace Tests.UnitTests.DocumentTests {
|
||||
Bewirtschaftung: Bio (AT-BIO-302)
|
||||
Herkunft: Österreich
|
||||
/ Wolkersdorfer Hochleithen / Wolkersdorf im Weinviertel / KG Wolkersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("""
|
||||
2 Grüner Veltliner Qualitätswein 75 15,4 2 134
|
||||
Bewirtschaftung: Bio (AT-BIO-302)
|
||||
Herkunft: Österreich / Weinland / Niederösterreich
|
||||
/ Wolkersdorfer Hochleithen / Wolkersdorf im Weinviertel / KG Wolkersdorf
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
"""));
|
||||
Assert.That(text, Contains.Substring("Gesamt: 78 15,9 5 332"));
|
||||
});
|
||||
@@ -152,12 +152,12 @@ namespace Tests.UnitTests.DocumentTests {
|
||||
Herkunft: Österreich / Weinland / Niederösterreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Zu-/Abschläge: Geschädigte Trauben −10,00 %
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
2 Grüner Veltliner Kabinett Kabinett 87 17,7 1 873
|
||||
Herkunft: Österreich / Weinland / Niederösterreich
|
||||
/ Matzner Hügel / Hohenruppersdorf / KG Hohenruppersdorf
|
||||
Zu-/Abschläge: Keine Voranmeldung −0,1000 €/kg
|
||||
Waage: ?, ID: ? (gerebelt gewogen)
|
||||
Waage/Terminal: ?/?, ID: ? (gerebelt gewogen)
|
||||
Gesamt: 87 17,6 4 860
|
||||
"""));
|
||||
}
|
||||
|
||||
@@ -31,16 +31,19 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1235;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1235, TareWeight = 0, NetWeight = 1235,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 17), Time = new TimeOnly(14, 23),
|
||||
}));
|
||||
Mock.Weight = 1240;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1240, TareWeight = 0, NetWeight = 1240,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 17), Time = new TimeOnly(14, 23),
|
||||
}));
|
||||
Mock.Weight = 1245;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1245, TareWeight = 0, NetWeight = 1245,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 17), Time = new TimeOnly(14, 23),
|
||||
}));
|
||||
}
|
||||
@@ -50,19 +53,19 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1235;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1235, TareWeight = 0, NetWeight = 1235,
|
||||
WeighingId = "1", FullWeighingId = $"2020-10-17/1",
|
||||
ScaleId = "1", WeighingId = "1", FullWeighingId = $"2020-10-17/1",
|
||||
Date = new DateOnly(2020, 10, 17), Time = new TimeOnly(14, 23),
|
||||
}));
|
||||
Mock.Weight = 3335;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3335, TareWeight = 0, NetWeight = 3335,
|
||||
WeighingId = "2", FullWeighingId = $"2020-10-17/2",
|
||||
ScaleId = "1", WeighingId = "2", FullWeighingId = $"2020-10-17/2",
|
||||
Date = new DateOnly(2020, 10, 17), Time = new TimeOnly(14, 23),
|
||||
}));
|
||||
Mock.Weight = 6420;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 6420, TareWeight = 0, NetWeight = 6420,
|
||||
WeighingId = "3", FullWeighingId = $"2020-10-17/3",
|
||||
ScaleId = "1", WeighingId = "3", FullWeighingId = $"2020-10-17/3",
|
||||
Date = new DateOnly(2020, 10, 17), Time = new TimeOnly(14, 23),
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
public class ScaleTestHaugsdorfDMA02 {
|
||||
|
||||
private MockScale Mock;
|
||||
private GassnerScale Scale;
|
||||
private GassnerEnqScale Scale;
|
||||
|
||||
[OneTimeSetUp]
|
||||
public void SetupScale() {
|
||||
@@ -32,29 +32,23 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1234;
|
||||
Mock.Tare = 0;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1234,
|
||||
TareWeight = 0,
|
||||
NetWeight = 1234,
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1234, TareWeight = 0, NetWeight = 1234,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 1235;
|
||||
Mock.Tare = 46;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1281,
|
||||
TareWeight = 46,
|
||||
NetWeight = 1235,
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1281, TareWeight = 46, NetWeight = 1235,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 1236;
|
||||
Mock.Tare = 92;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1328,
|
||||
TareWeight = 92,
|
||||
NetWeight = 1236,
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1328, TareWeight = 92, NetWeight = 1236,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -63,35 +57,23 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1234;
|
||||
Mock.Tare = 92;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1326,
|
||||
TareWeight = 92,
|
||||
NetWeight = 1234,
|
||||
WeighingId = "1",
|
||||
FullWeighingId = "1",
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1326, TareWeight = 92, NetWeight = 1234,
|
||||
ScaleId = "1", WeighingId = "1", FullWeighingId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 3333;
|
||||
Mock.Tare = 41;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3374,
|
||||
TareWeight = 41,
|
||||
NetWeight = 3333,
|
||||
WeighingId = "2",
|
||||
FullWeighingId = "2",
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 3374, TareWeight = 41, NetWeight = 3333,
|
||||
ScaleId = "1", WeighingId = "2", FullWeighingId = "2",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 4321;
|
||||
Mock.Tare = 0;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 4321,
|
||||
TareWeight = 0,
|
||||
NetWeight = 4321,
|
||||
WeighingId = "3",
|
||||
FullWeighingId = "3",
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 4321, TareWeight = 0, NetWeight = 4321,
|
||||
ScaleId = "1", WeighingId = "3", FullWeighingId = "3",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -31,16 +31,19 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1234;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1234, TareWeight = 0, NetWeight = 1234,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 1235;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1235, TareWeight = 0, NetWeight = 1235,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 1236;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1236, TareWeight = 0, NetWeight = 1236,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
}
|
||||
@@ -50,19 +53,19 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1234;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1234, TareWeight = 0, NetWeight = 1234,
|
||||
WeighingId = "1", FullWeighingId = $"2020-10-15/1",
|
||||
ScaleId = "1", WeighingId = "1", FullWeighingId = $"2020-10-15/1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 3333;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3333, TareWeight = 0, NetWeight = 3333,
|
||||
WeighingId = "2", FullWeighingId = $"2020-10-15/2",
|
||||
ScaleId = "1", WeighingId = "2", FullWeighingId = $"2020-10-15/2",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 4321;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 4321, TareWeight = 0, NetWeight = 4321,
|
||||
WeighingId = "3", FullWeighingId = $"2020-10-15/3",
|
||||
ScaleId = "1", WeighingId = "3", FullWeighingId = $"2020-10-15/3",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
public class ScaleTestSitzendorfDMA03Baby {
|
||||
|
||||
private MockScale Mock;
|
||||
private GassnerScale Scale;
|
||||
private GassnerEnqScale Scale;
|
||||
|
||||
[OneTimeSetUp]
|
||||
public void SetupScale() {
|
||||
@@ -32,29 +32,23 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1234;
|
||||
Mock.Tare = 0;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1234,
|
||||
TareWeight = 0,
|
||||
NetWeight = 1234,
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1234, TareWeight = 0, NetWeight = 1234,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 1235;
|
||||
Mock.Tare = 46;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1281,
|
||||
TareWeight = 46,
|
||||
NetWeight = 1235,
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1281, TareWeight = 46, NetWeight = 1235,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 1236;
|
||||
Mock.Tare = 92;
|
||||
Assert.That(await Scale!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1328,
|
||||
TareWeight = 92,
|
||||
NetWeight = 1236,
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1328, TareWeight = 92, NetWeight = 1236,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -63,35 +57,23 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
Mock.Weight = 1234;
|
||||
Mock.Tare = 92;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1326,
|
||||
TareWeight = 92,
|
||||
NetWeight = 1234,
|
||||
WeighingId = "1",
|
||||
FullWeighingId = "1",
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 1326, TareWeight = 92, NetWeight = 1234,
|
||||
ScaleId = "1", WeighingId = "1", FullWeighingId = "1",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 3333;
|
||||
Mock.Tare = 41;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3374,
|
||||
TareWeight = 41,
|
||||
NetWeight = 3333,
|
||||
WeighingId = "2",
|
||||
FullWeighingId = "2",
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 3374, TareWeight = 41, NetWeight = 3333,
|
||||
ScaleId = "1", WeighingId = "2", FullWeighingId = "2",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
Mock.Weight = 4321;
|
||||
Mock.Tare = 0;
|
||||
Assert.That(await Scale!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 4321,
|
||||
TareWeight = 0,
|
||||
NetWeight = 4321,
|
||||
WeighingId = "3",
|
||||
FullWeighingId = "3",
|
||||
Date = new DateOnly(2020, 10, 15),
|
||||
Time = new TimeOnly(12, 34),
|
||||
GrossWeight = 4321, TareWeight = 0, NetWeight = 4321,
|
||||
ScaleId = "1", WeighingId = "3", FullWeighingId = "3",
|
||||
Date = new DateOnly(2020, 10, 15), Time = new TimeOnly(12, 34),
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,25 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
MockA.Weight = 1234;
|
||||
Assert.That(await ScaleA!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1234, TareWeight = 0, NetWeight = 1234,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
MockB.Weight = 3456;
|
||||
Assert.That(await ScaleB!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3456, TareWeight = 0, NetWeight = 3456,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
MockA.Weight = 1236;
|
||||
Assert.That(await ScaleA!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1236, TareWeight = 0, NetWeight = 1236,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
MockB.Weight = 3457;
|
||||
Assert.That(await ScaleB!.GetCurrentWeight(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3457, TareWeight = 0, NetWeight = 3457,
|
||||
ScaleId = "1",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
}
|
||||
@@ -64,25 +68,25 @@ namespace Tests.UnitTests.WeighingTests {
|
||||
MockA.Weight = 1234;
|
||||
Assert.That(await ScaleA!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 1234, TareWeight = 0, NetWeight = 1234,
|
||||
WeighingId = "1", FullWeighingId = $"2020-10-08/1",
|
||||
ScaleId = "1", WeighingId = "1", FullWeighingId = $"2020-10-08/1",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
MockB.Weight = 3456;
|
||||
Assert.That(await ScaleB!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3456, TareWeight = 0, NetWeight = 3456,
|
||||
WeighingId = "1", FullWeighingId = $"2020-10-08/1",
|
||||
ScaleId = "1", WeighingId = "1", FullWeighingId = $"2020-10-08/1",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
MockA.Weight = 4321;
|
||||
Assert.That(await ScaleA!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 4321, TareWeight = 0, NetWeight = 4321,
|
||||
WeighingId = "2", FullWeighingId = $"2020-10-08/2",
|
||||
ScaleId = "1", WeighingId = "2", FullWeighingId = $"2020-10-08/2",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
MockB.Weight = 3333;
|
||||
Assert.That(await ScaleB!.Weigh(), Is.EqualTo(new WeighingResult {
|
||||
GrossWeight = 3333, TareWeight = 0, NetWeight = 3333,
|
||||
WeighingId = "2", FullWeighingId = $"2020-10-08/2",
|
||||
ScaleId = "1", WeighingId = "2", FullWeighingId = $"2020-10-08/2",
|
||||
Date = new DateOnly(2020, 10, 8), Time = new TimeOnly(8, 47),
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user