-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
105 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
starsky/starskytest/FakeMocks/FakeIOpenEditorDesktopService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using starsky.feature.desktop.Interfaces; | ||
using starsky.feature.desktop.Models; | ||
using starsky.foundation.database.Models; | ||
using starsky.foundation.platform.Helpers; | ||
|
||
namespace starskytest.FakeMocks; | ||
|
||
public class FakeIOpenEditorDesktopService : IOpenEditorDesktopService | ||
{ | ||
private readonly bool _isEnabled; | ||
|
||
public FakeIOpenEditorDesktopService(bool isEnabled = true) | ||
{ | ||
_isEnabled = isEnabled; | ||
} | ||
|
||
public bool IsEnabled() | ||
{ | ||
return _isEnabled; | ||
} | ||
|
||
public async Task<(bool?, string, List<PathImageFormatExistsAppPathModel>)> OpenAsync(string f, | ||
bool collections) | ||
{ | ||
await Task.Yield(); | ||
|
||
var list = new List<PathImageFormatExistsAppPathModel> | ||
{ | ||
new PathImageFormatExistsAppPathModel | ||
{ | ||
AppPath = "test", | ||
Status = FileIndexItem.ExifStatus.Ok, | ||
ImageFormat = ExtensionRolesHelper.ImageFormat.jpg, | ||
SubPath = "/test.jpg", | ||
FullFilePath = "/test.jpg" | ||
} | ||
}; | ||
|
||
return ( _isEnabled, "Opened", list ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters