Skip to content

Commit

Permalink
Fix minor typos, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oreze committed Jun 2, 2024
1 parent c2b39b2 commit 2ea31b0
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public async Task CreateTrip_ValidInput_ReturnsOk()
.Include(x => x.Country)
.FirstOrDefaultAsync(x => x.ID == result);
Assert.NotNull(trip);
Assert.Equal(createTripDto.Name, trip!.Name);
Assert.Equal(createTripDto.Description, trip!.Description);
Assert.Equal(createTripDto.CountryName, trip!.Country.Name);
Assert.Equal(createTripDto.NumberOfSeats, trip!.NumberOfSeats);
Assert.Equal(createTripDto.StartDate, trip!.StartDate);
Assert.Equal(createTripDto.Name, trip.Name);
Assert.Equal(createTripDto.Description, trip.Description);
Assert.Equal(createTripDto.CountryName, trip.Country.Name);
Assert.Equal(createTripDto.NumberOfSeats, trip.NumberOfSeats);
Assert.Equal(createTripDto.StartDate, trip.StartDate);
}

[Fact]
Expand Down Expand Up @@ -209,8 +209,8 @@ public async Task EditTrip_TripWithNameExists_ReturnsBadRequest()
"Germany");

var editTripJson = JsonSerializer.Serialize(editTripDto);
var editTripContnet = new StringContent(editTripJson, Encoding.UTF8, "application/json");
var editTripResponse = await _httpClient.PutAsync($"/trips/{firstTrip.ID}", editTripContnet);
var editTripContent = new StringContent(editTripJson, Encoding.UTF8, "application/json");
var editTripResponse = await _httpClient.PutAsync($"/trips/{firstTrip.ID}", editTripContent);
Assert.Equal(HttpStatusCode.BadRequest, editTripResponse.StatusCode);

var updatedTrip = await _dbContext.Trips.Include(x => x.Country).FirstOrDefaultAsync(x => x.ID == firstTrip.ID);
Expand Down

0 comments on commit 2ea31b0

Please sign in to comment.