From c66ee55143b6fa927b71b6213de78c7d08d9c6b4 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Fri, 5 Jan 2024 18:14:02 +0300 Subject: [PATCH] Fixed formatting --- .../FoodDiary.ComponentTests/Formatting/ProductFormatter.cs | 2 +- .../Scenarios/Notes/NotesApiContext.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/tests/FoodDiary.ComponentTests/Formatting/ProductFormatter.cs b/src/backend/tests/FoodDiary.ComponentTests/Formatting/ProductFormatter.cs index 08f2452d6..a15ec0608 100644 --- a/src/backend/tests/FoodDiary.ComponentTests/Formatting/ProductFormatter.cs +++ b/src/backend/tests/FoodDiary.ComponentTests/Formatting/ProductFormatter.cs @@ -12,6 +12,6 @@ public string FormatValue(object value, IValueFormattingService formattingServic throw new FormatterNotRegisteredException(value); } - return $"{product.Name} ({product.Category?.Name})"; + return product.Name; } } \ No newline at end of file diff --git a/src/backend/tests/FoodDiary.ComponentTests/Scenarios/Notes/NotesApiContext.cs b/src/backend/tests/FoodDiary.ComponentTests/Scenarios/Notes/NotesApiContext.cs index 904ff4652..12354bec0 100644 --- a/src/backend/tests/FoodDiary.ComponentTests/Scenarios/Notes/NotesApiContext.cs +++ b/src/backend/tests/FoodDiary.ComponentTests/Scenarios/Notes/NotesApiContext.cs @@ -47,12 +47,12 @@ public async Task When_user_creates_note(Note note) _createNoteResponse = await ApiClient.PostAsJsonAsync("/api/v1/notes", request); } - public async Task When_user_updates_product_with_quantity_for_note(Note note, Product newProduct, int newQuantity) + public async Task When_user_updates_product_with_quantity_for_note(Note note, Product product, int quantity) { var request = Create.NoteCreateEditRequest() .From(note) - .WithProduct(newProduct) - .WithProductQuantity(newQuantity) + .WithProduct(product) + .WithProductQuantity(quantity) .Please(); _updateNoteResponse = await ApiClient.PutAsJsonAsync($"/api/v1/notes/{note.Id}", request); }