Skip to content

Commit

Permalink
Rename method SearchDevicesToClone to SearchDevicesToDuplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf committed Jul 29, 2022
1 parent cbe19c3 commit 37e7d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public void TypingOnMudAutocompleteShouldTriggerSearch()
autocompleteComponent.Find(TagNames.Input).Click();
autocompleteComponent.Find(TagNames.Input).Input(query);


// Assert
cut.WaitForAssertion(() => autocompleteComponent.Instance.IsOpen.Should().BeTrue());
cut.WaitForAssertion(() => MockRepository.VerifyAll());
Expand All @@ -103,7 +102,6 @@ public void TypingOnMudAutocompleteShouldProcessProblemDetailsExceptionWhenTrigg
autocompleteComponent.Find(TagNames.Input).Click();
autocompleteComponent.Find(TagNames.Input).Input(query);


// Assert
cut.WaitForAssertion(() => autocompleteComponent.Instance.IsOpen.Should().BeTrue());
cut.WaitForAssertion(() => MockRepository.VerifyAll());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<MudAutocomplete id="search-device"
T="DeviceListItem"
Label="Device to Duplicate"
SearchFunc="@SearchDevicesToClone"
Label="Search a device to duplicate"
SearchFunc="@SearchDevicesToDuplicate"
ToStringFunc="@(x => x?.DeviceName)"
DebounceInterval="300"
ValueChanged="OnDeviceSelected"
Expand Down Expand Up @@ -41,7 +41,7 @@
[CascadingParameter]
public Error Error {get; set;}

private async Task<IEnumerable<DeviceListItem>> SearchDevicesToClone(string query)
private async Task<IEnumerable<DeviceListItem>> SearchDevicesToDuplicate(string query)
{
try
{
Expand Down

0 comments on commit 37e7d1c

Please sign in to comment.