Skip to content

Commit f8a4150

Browse files
committed
fix: Missing Place reference
1 parent 2fe91e4 commit f8a4150

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

Examples/BookingSystem.AspNetCore/Stores/SessionStore.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,7 @@ protected override async Task GetOrderItems(List<OrderItemContext<SessionOpportu
361361
}),
362362
Name = @class.Title,
363363
Url = new Uri("https://example.com/events/" + occurrence.ClassId),
364-
Location = new Place
365-
{
366-
Name = "Fake fitness studio",
367-
Geo = new GeoCoordinates
368-
{
369-
Latitude = 51.6201M,
370-
Longitude = 0.302396M
371-
}
372-
},
364+
Location = _fakeBookingSystem.Database.GetPlaceById(@class.PlaceId),
373365
Activity = new List<Concept>
374366
{
375367
new Concept

Examples/BookingSystem.AspNetFramework/Stores/SessionStore.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,7 @@ protected override async Task GetOrderItems(List<OrderItemContext<SessionOpportu
361361
}),
362362
Name = @class.Title,
363363
Url = new Uri("https://example.com/events/" + occurrence.ClassId),
364-
Location = new Place
365-
{
366-
Name = "Fake fitness studio",
367-
Geo = new GeoCoordinates
368-
{
369-
Latitude = 51.6201M,
370-
Longitude = 0.302396M
371-
}
372-
},
364+
Location = _fakeBookingSystem.Database.GetPlaceById(@class.PlaceId),
373365
Activity = new List<Concept>
374366
{
375367
new Concept

0 commit comments

Comments
 (0)