mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-06 17:02:12 +00:00
style(tests): format vendor quota test initializers
This commit is contained in:
parent
e15de6e90b
commit
a8414cd4fa
1 changed files with 22 additions and 6 deletions
|
|
@ -1402,19 +1402,35 @@ public class WorkOrderMediaServiceTests
|
||||||
// Vendor v1 video was replaced by v2 (also a video): only v2 is current.
|
// Vendor v1 video was replaced by v2 (also a video): only v2 is current.
|
||||||
context.VendorCompletionDocuments.Add(new VendorCompletionDocument
|
context.VendorCompletionDocuments.Add(new VendorCompletionDocument
|
||||||
{
|
{
|
||||||
Id = 50, WorkOrderId = 1, DispatchId = 7, VendorId = 3, Version = 1,
|
Id = 50,
|
||||||
ContentType = "video/mp4", Purpose = "Completion"
|
WorkOrderId = 1,
|
||||||
|
DispatchId = 7,
|
||||||
|
VendorId = 3,
|
||||||
|
Version = 1,
|
||||||
|
ContentType = "video/mp4",
|
||||||
|
Purpose = "Completion"
|
||||||
});
|
});
|
||||||
context.VendorCompletionDocuments.Add(new VendorCompletionDocument
|
context.VendorCompletionDocuments.Add(new VendorCompletionDocument
|
||||||
{
|
{
|
||||||
Id = 51, WorkOrderId = 1, DispatchId = 7, VendorId = 3, Version = 2,
|
Id = 51,
|
||||||
ContentType = "video/quicktime", Purpose = "Completion", ReplacesDocumentId = 50
|
WorkOrderId = 1,
|
||||||
|
DispatchId = 7,
|
||||||
|
VendorId = 3,
|
||||||
|
Version = 2,
|
||||||
|
ContentType = "video/quicktime",
|
||||||
|
Purpose = "Completion",
|
||||||
|
ReplacesDocumentId = 50
|
||||||
});
|
});
|
||||||
// Another work order's vendor video never counts here.
|
// Another work order's vendor video never counts here.
|
||||||
context.VendorCompletionDocuments.Add(new VendorCompletionDocument
|
context.VendorCompletionDocuments.Add(new VendorCompletionDocument
|
||||||
{
|
{
|
||||||
Id = 60, WorkOrderId = 2, DispatchId = 8, VendorId = 3, Version = 1,
|
Id = 60,
|
||||||
ContentType = "video/mp4", Purpose = "Completion"
|
WorkOrderId = 2,
|
||||||
|
DispatchId = 8,
|
||||||
|
VendorId = 3,
|
||||||
|
Version = 1,
|
||||||
|
ContentType = "video/mp4",
|
||||||
|
Purpose = "Completion"
|
||||||
});
|
});
|
||||||
await context.SaveChangesAsync();
|
await context.SaveChangesAsync();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue