From c1f06206913ecabebcc3df8c7bb97d107893d1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Chirico=20Indreb=C3=B8?= Date: Thu, 12 Dec 2024 13:49:19 +0100 Subject: [PATCH] Make robot in tests that checks for robot --- backend/api.test/Client/RobotTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/api.test/Client/RobotTests.cs b/backend/api.test/Client/RobotTests.cs index 75a390c1..03dc9e38 100644 --- a/backend/api.test/Client/RobotTests.cs +++ b/backend/api.test/Client/RobotTests.cs @@ -67,6 +67,9 @@ public async Task GetRobotById_ShouldReturnNotFound() [Fact] public async Task GetRobotById_ShouldReturnRobot() { + var installation = await _databaseUtilities.ReadOrNewInstallation(); + _ = await _databaseUtilities.NewRobot(RobotStatus.Available, installation); + string url = "/robots"; var response = await _client.GetAsync(url); var robots = await response.Content.ReadFromJsonAsync>(_serializerOptions);