Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[housekeeping] Automated PR to fix formatting errors #2285

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public partial class UpdatingPopupViewModel : BaseViewModel
{
const double finalUpdateProgressValue = 1;
int updates;

readonly IPopupService popupService;
[ObservableProperty]
string message = "";
Expand Down Expand Up @@ -45,7 +45,7 @@ void OnFinish()
{
popupService.ClosePopup();
}

[RelayCommand]
void OnMore()
{
Expand Down
34 changes: 17 additions & 17 deletions src/CommunityToolkit.Maui.UnitTests/Mocks/MockDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ namespace CommunityToolkit.Maui.UnitTests.Mocks;

public sealed class MockDispatcher : IDispatcher
{
public MockDispatcher() => ManagedThreadId = Environment.CurrentManagedThreadId;
public MockDispatcher() => ManagedThreadId = Environment.CurrentManagedThreadId;

public bool IsDispatchRequired => false;
public bool IsDispatchRequired => false;

public int ManagedThreadId { get; }
public int ManagedThreadId { get; }

public IDispatcherTimer CreateTimer()
{
return new DispatcherTimerStub(this);
}
public IDispatcherTimer CreateTimer()
{
return new DispatcherTimerStub(this);
}

public bool Dispatch(Action action)
{
action();
public bool Dispatch(Action action)
{
action();

return true;
}
return true;
}

public bool DispatchDelayed(TimeSpan delay, Action action)
{
return false;
}
public bool DispatchDelayed(TimeSpan delay, Action action)
{
return false;
}

sealed class DispatcherTimerStub : IDispatcherTimer, IDisposable
sealed class DispatcherTimerStub : IDispatcherTimer, IDisposable
{
readonly IDispatcher dispatcher;

Expand Down