Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zjyslav committed Jun 28, 2024
1 parent 44e9f37 commit 9a57c4d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using AutoFixture;
using Microsoft.AspNetCore.Mvc;
using TutorLizard.Blazor.Extensions;
using TutorLizard.Blazor.Models;
using TutorLizard.Web.Extensions;

Expand All @@ -11,10 +12,11 @@ public void Search_WhenCalled_ShouldCorrectlyRedirectToAdsAction()
{
// Arrange
AdSearchCriteriaViewModel searchCriteria = Fixture.Create<AdSearchCriteriaViewModel>();
string searchJson = searchCriteria.Serialize();
string expectedSearchString = searchCriteria.ToDto().ToBase64String();

// Act
var result = BrowseController.Search(searchCriteria);
var result = BrowseController.Search(searchJson);

// Assert
Assert.IsType<RedirectToActionResult>(result);
Expand Down

0 comments on commit 9a57c4d

Please sign in to comment.