-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add `ScreenInstance.Variant` - `PaYamlSerializationContext` now holds the `PaYamlSerializerOptions` options instance, and moved YamlDotNet builder configs to this class. This helps to reduce the number of parameters needed for some custom converter operations, along with keeping the options class more like a POCO. - Used primary ctor in some locations - PaYaml OM properties for collection properties (`Properties`, `Children`, `Groups`) are now nullable, default to null, to conserve memory all around. - Reverted type name changes so the term `PaYaml` is preferred over just `Yaml`. As was already discussed as part of original changes, this term is used to differentiate the types from more general purpose Yaml serialization types.
- Loading branch information
Showing
29 changed files
with
293 additions
and
258 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
22 changes: 22 additions & 0 deletions
22
src/Persistence.Tests/Extensions/PaYamlLocationAssertionExtensions.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,22 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using FluentAssertions.Primitives; | ||
using Microsoft.PowerPlatform.PowerApps.Persistence.PaYaml.Models; | ||
|
||
namespace Persistence.Tests.Extensions; | ||
|
||
[DebuggerNonUserCode] | ||
public static class PaYamlLocationAssertionExtensions | ||
{ | ||
public static PaYamlLocationAssertions Should(this PaYamlLocation? actualValue) | ||
{ | ||
return new(actualValue); | ||
} | ||
} | ||
|
||
[DebuggerNonUserCode] | ||
public class PaYamlLocationAssertions(PaYamlLocation? actualValue) | ||
: ObjectAssertions<PaYamlLocation?, PaYamlLocationAssertions>(actualValue) | ||
{ | ||
} |
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
Oops, something went wrong.