-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from LuxoriaSoft/fix/cicd/tests-coverage
fix: Excluding events and some basic models from coverage
- Loading branch information
Showing
12 changed files
with
152 additions
and
157 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
7 changes: 2 additions & 5 deletions
7
Luxoria.App/Luxoria.Modules/Models/Events/CollectionUpdatedEvent.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
3 changes: 2 additions & 1 deletion
3
Luxoria.App/Luxoria.Modules/Models/Events/ImageUpdatedEvent.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
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
5 changes: 4 additions & 1 deletion
5
Luxoria.App/Luxoria.Modules/Models/Events/OpenCollectionEvent.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,45 @@ | ||
namespace Luxoria.Modules.Models | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Luxoria.Modules.Models; | ||
|
||
/// <summary> | ||
/// Represents an action associated with a tool in the Luxoria application. | ||
/// </summary> | ||
[ExcludeFromCodeCoverage] | ||
public class LuxAction | ||
{ | ||
/// <summary> | ||
/// Represents an action associated with a tool in the Luxoria application. | ||
/// Gets the unique identifier for the action. | ||
/// </summary> | ||
public class LuxAction | ||
{ | ||
/// <summary> | ||
/// Gets the unique identifier for the action. | ||
/// </summary> | ||
public Guid Id { get; private set; } | ||
public Guid Id { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the unique identifier for the associated tool. | ||
/// </summary> | ||
public Guid ToolId { get; private set; } | ||
/// <summary> | ||
/// Gets the unique identifier for the associated tool. | ||
/// </summary> | ||
public Guid ToolId { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the parameters associated with the action. | ||
/// </summary> | ||
public List<string> Parameters { get; private set; } | ||
/// <summary> | ||
/// Gets the parameters associated with the action. | ||
/// </summary> | ||
public List<string> Parameters { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the arguments associated with the action. | ||
/// </summary> | ||
public List<string> Args { get; private set; } | ||
/// <summary> | ||
/// Gets the arguments associated with the action. | ||
/// </summary> | ||
public List<string> Args { get; private set; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="LuxAction"/> class. | ||
/// </summary> | ||
/// <param name="id">The unique identifier for the action.</param> | ||
/// <param name="toolId">The unique identifier for the associated tool.</param> | ||
/// <param name="parameters">The parameters associated with the action.</param> | ||
/// <param name="args">The arguments associated with the action.</param> | ||
public LuxAction(Guid id, Guid toolId, List<string> parameters, List<string> args) | ||
{ | ||
Id = id; | ||
ToolId = toolId; | ||
Parameters = parameters ?? new List<string>(); | ||
Args = args ?? new List<string>(); | ||
} | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="LuxAction"/> class. | ||
/// </summary> | ||
/// <param name="id">The unique identifier for the action.</param> | ||
/// <param name="toolId">The unique identifier for the associated tool.</param> | ||
/// <param name="parameters">The parameters associated with the action.</param> | ||
/// <param name="args">The arguments associated with the action.</param> | ||
public LuxAction(Guid id, Guid toolId, List<string> parameters, List<string> args) | ||
{ | ||
Id = id; | ||
ToolId = toolId; | ||
Parameters = parameters ?? new List<string>(); | ||
Args = args ?? new List<string>(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,31 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Luxoria.Modules.Models | ||
namespace Luxoria.Modules.Models; | ||
|
||
/// <summary> | ||
/// Contains the properties of an asset in the Luxoria application. | ||
/// Data -> ImageData | ||
/// ConfigFile -> LuxCfg | ||
/// </summary> | ||
[ExcludeFromCodeCoverage] | ||
public class LuxAsset | ||
{ | ||
/// <summary> | ||
/// Contains the properties of an asset in the Luxoria application. | ||
/// Data -> ImageData | ||
/// ConfigFile -> LuxCfg | ||
/// Gets the unique identifier for the asset. | ||
/// </summary> | ||
public class LuxAsset | ||
{ | ||
/// <summary> | ||
/// Gets the unique identifier for the asset. | ||
/// </summary> | ||
public Guid Id => MetaData.Id; | ||
public Guid Id => MetaData.Id; | ||
|
||
/// <summary> | ||
/// Contains the properties of the asset. | ||
/// </summary> | ||
public required LuxCfg MetaData { get; init; } | ||
/// <summary> | ||
/// Contains the properties of the asset. | ||
/// </summary> | ||
public required LuxCfg MetaData { get; init; } | ||
|
||
/// <summary> | ||
/// Contains the data of the asset. | ||
/// </summary> | ||
public required ImageData Data { get; init; } | ||
} | ||
/// <summary> | ||
/// Contains the data of the asset. | ||
/// </summary> | ||
public required ImageData Data { get; init; } | ||
} |
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 |
---|---|---|
@@ -1,94 +1,93 @@ | ||
using System.Collections.Generic; | ||
using Luxoria.Modules.Models; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Luxoria.Modules.Models | ||
namespace Luxoria.Modules.Models; | ||
|
||
/// <summary> | ||
/// Represents a picture with its properties and associated actions and versioning. | ||
/// </summary> | ||
[ExcludeFromCodeCoverage] | ||
public class LuxCfg | ||
{ | ||
/// <summary> | ||
/// Represents a picture with its properties and associated actions and versioning. | ||
/// Gets the configuration version of the Luxoria application. | ||
/// </summary> | ||
public class LuxCfg | ||
{ | ||
/// <summary> | ||
/// Gets the configuration version of the Luxoria application. | ||
/// </summary> | ||
public string Version { get; private set; } | ||
public string Version { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the unique identifier for the picture. | ||
/// </summary> | ||
public Guid Id { get; private set; } | ||
/// <summary> | ||
/// Gets the unique identifier for the picture. | ||
/// </summary> | ||
public Guid Id { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the name of the picture. | ||
/// </summary> | ||
public string Name { get; private set; } | ||
/// <summary> | ||
/// Gets the name of the picture. | ||
/// </summary> | ||
public string Name { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the file name of the picture. | ||
/// </summary> | ||
public string FileName { get; private set; } | ||
/// <summary> | ||
/// Gets the file name of the picture. | ||
/// </summary> | ||
public string FileName { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the description of the picture. | ||
/// </summary> | ||
public string Description { get; private set; } | ||
/// <summary> | ||
/// Gets the description of the picture. | ||
/// </summary> | ||
public string Description { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the file extension of the picture. | ||
/// </summary> | ||
public FileExtension Extension { get; private set; } | ||
/// <summary> | ||
/// Gets the file extension of the picture. | ||
/// </summary> | ||
public FileExtension Extension { get; private set; } | ||
|
||
/// <summary>ff | ||
/// Gets the full name of the picture, combining the name and extension. | ||
/// </summary> | ||
public string FullName => FileName; | ||
/// <summary>ff | ||
/// Gets the full name of the picture, combining the name and extension. | ||
/// </summary> | ||
public string FullName => FileName; | ||
|
||
/// <summary> | ||
/// Gets the list of actions associated with the picture. | ||
/// </summary> | ||
public List<LuxAction> Actions { get; private set; } | ||
/// <summary> | ||
/// Gets the list of actions associated with the picture. | ||
/// </summary> | ||
public List<LuxAction> Actions { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the list of versions associated with the picture. | ||
/// </summary> | ||
public List<LuxVersion> Versionning { get; private set; } | ||
/// <summary> | ||
/// Gets the list of versions associated with the picture. | ||
/// </summary> | ||
public List<LuxVersion> Versionning { get; private set; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Picture"/> class. | ||
/// </summary> | ||
/// <param name="version">The configuration version of Luxoria.</param> | ||
/// <param name="name">The name of the picture.</param> | ||
/// <param name="fileName">The file name of the picture.</param> | ||
/// <param name="description">The description of the picture.</param> | ||
/// <param name="extension">The file extension of the picture.</param> | ||
/// <param name="actions">The list of actions associated with the picture.</param> | ||
/// <param name="versionning">The list of versions associated with the picture.</param> | ||
public LuxCfg(string version, Guid fileUuid, string name, string fileName, string description, FileExtension extension) | ||
{ | ||
Version = version; | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Picture"/> class. | ||
/// </summary> | ||
/// <param name="version">The configuration version of Luxoria.</param> | ||
/// <param name="name">The name of the picture.</param> | ||
/// <param name="fileName">The file name of the picture.</param> | ||
/// <param name="description">The description of the picture.</param> | ||
/// <param name="extension">The file extension of the picture.</param> | ||
/// <param name="actions">The list of actions associated with the picture.</param> | ||
/// <param name="versionning">The list of versions associated with the picture.</param> | ||
public LuxCfg(string version, Guid fileUuid, string name, string fileName, string description, FileExtension extension) | ||
{ | ||
Version = version; | ||
|
||
Id = fileUuid; | ||
Name = name; | ||
FileName = fileName; | ||
Description = description; | ||
Extension = extension; | ||
Actions = new List<LuxAction>(); | ||
Versionning = new List<LuxVersion>(); | ||
} | ||
Id = fileUuid; | ||
Name = name; | ||
FileName = fileName; | ||
Description = description; | ||
Extension = extension; | ||
Actions = new List<LuxAction>(); | ||
Versionning = new List<LuxVersion>(); | ||
} | ||
|
||
/// <summary> | ||
/// Public model 'Asset interface' | ||
/// </summary> | ||
public class AssetInterface | ||
{ | ||
// File name | ||
public required string FileName { get; set; } | ||
// Relative file path | ||
public required string RelativeFilePath { get; set; } | ||
// Related Luxoria Config Id | ||
public required Guid LuxCfgId { get; set; } | ||
// File hash (SHA-256) | ||
public required string Hash { get; set; } | ||
} | ||
/// <summary> | ||
/// Public model 'Asset interface' | ||
/// </summary> | ||
public class AssetInterface | ||
{ | ||
// File name | ||
public required string FileName { get; set; } | ||
// Relative file path | ||
public required string RelativeFilePath { get; set; } | ||
// Related Luxoria Config Id | ||
public required Guid LuxCfgId { get; set; } | ||
// File hash (SHA-256) | ||
public required string Hash { get; set; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using Luxoria.Modules.Interfaces; | ||
using Luxoria.Modules.Models; | ||
using System; | ||
|
||
namespace Luxoria.Modules | ||
{ | ||
|