Skip to content

Commit

Permalink
dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
thom776g committed Dec 7, 2023
1 parent 9303f4d commit 6f98822
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CentralHub.Api/Services/SampleRoomRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static SampleRoomRepository()
var sampleRoomRepository = new SampleRoomRepository();
List<RoomDto> rooms = new List<RoomDto>();

for(int i = 0; i < 5; i++)
for (int i = 0; i < 5; i++)
{
rooms.Add(new RoomDto()
{
Expand All @@ -30,7 +30,7 @@ static SampleRoomRepository()
});
}

foreach(var room in rooms)
foreach (var room in rooms)
{
sampleRoomRepository.AddRoomAsync(room, default).GetAwaiter().GetResult();
}
Expand Down
6 changes: 3 additions & 3 deletions CentralHub.Api/Services/SampleTrackerRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ static SampleTrackerRepository()
BluetoothMacAddress = BluetoothName,
Name = $"Sample Tracker {i}",
Description = "Sample Tracker",
RoomDtoId = rooms[i%1].RoomDtoId,
RoomDto = rooms[i%1],
RoomDtoId = rooms[i % 1].RoomDtoId,
RoomDto = rooms[i % 1],
TrackerDtoId = -1,
});
}
Expand All @@ -65,7 +65,7 @@ static SampleTrackerRepository()
sampleTrackerRepository.AddTrackerAsync(tracker, default).GetAwaiter().GetResult();
}

for(int i = 0; i < 5; i++)
for (int i = 0; i < 5; i++)
{
String WifiName;
String BluetoothName;
Expand Down
7 changes: 4 additions & 3 deletions CentralHub.WebUI/Data/TrackerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public TrackerService(IHttpClientFactory clientFactory)
{
_clientFactory = clientFactory;
}

public async Task RemoveTrackerAsync(Tracker tracker, CancellationToken cancellationToken)
{
var request = new HttpRequestMessage(
Expand All @@ -38,7 +38,7 @@ public async Task RemoveTrackerAsync(Tracker tracker, CancellationToken cancella
throw new InvalidOperationException("Somethings fucky");
}
}

public async Task AddTrackerAsync(Room room, UnregisteredTracker tracker, String name, String description, CancellationToken cancellationToken)
{
var addTrackerRequest = new AddTrackerRequest(room.RoomId, name, description, tracker.WifiMacAddress, tracker.BluetoothMacAddress);
Expand Down Expand Up @@ -81,7 +81,8 @@ public async Task UpdateTrackerAsync(Room room, Tracker tracker, String name, St
{
throw new InvalidOperationException("Somethings fucky");
}
} else
}
else
{
await RemoveTrackerAsync(tracker, cancellationToken);
UnregisteredTracker[] uTrackers = await GetUnregisteredTrackersAsync(cancellationToken);
Expand Down

0 comments on commit 6f98822

Please sign in to comment.