Skip to content

Commit

Permalink
Updated test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Nov 11, 2023
1 parent 8f025bb commit 8a7e5d9
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public partial class PatchRocket
{
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool SerialNumber { get; init; }
Expand All @@ -20,20 +21,20 @@ public partial class PatchRocket
{SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Request ApplyChanges(global::Request value)
public global::Request ApplyChanges(global::Request state)
{
if (SerialNumber.HasBeenSet())
{
value.SerialNumber = SerialNumber;
state.SerialNumber = SerialNumber!;
}

if (Type.HasBeenSet())
{
value.Type = Type;
state.Type = Type!;
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public partial class PatchRocket
{
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool SerialNumber { get; init; }
Expand All @@ -20,20 +21,20 @@ public partial class PatchRocket
{SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Request ApplyChanges(global::Request value)
public global::Request ApplyChanges(global::Request state)
{
if (SerialNumber.HasBeenSet())
{
value.SerialNumber = SerialNumber;
state.SerialNumber = SerialNumber!;
}

if (Type.HasBeenSet())
{
value.Type = Type;
state.Type = Type!;
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public partial class PatchRocket
{
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool SerialNumber { get; init; }
Expand All @@ -20,20 +21,20 @@ public partial class PatchRocket
{SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Request ApplyChanges(global::Request value)
public global::Request ApplyChanges(global::Request state)
{
if (SerialNumber.HasBeenSet())
{
value.SerialNumber = SerialNumber;
state.SerialNumber = SerialNumber!;
}

if (Type.HasBeenSet())
{
value.Type = Type;
state.Type = Type!;
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial record PatchRocket
public Rocket.Surgery.LaunchPad.Foundation.Assigned<Guid> Id { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<Guid>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool Id { get; init; }
Expand All @@ -23,25 +24,25 @@ public partial record PatchRocket
{Id = Id.HasBeenSet(), SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Request ApplyChanges(global::Request value)
public global::Request ApplyChanges(global::Request state)
{
if (Id.HasBeenSet())
{
value = value with {Id = Id};
state = state with {Id = Id!};
}

if (SerialNumber.HasBeenSet())
{
value = value with {SerialNumber = SerialNumber};
state = state with {SerialNumber = SerialNumber!};
}

if (Type.HasBeenSet())
{
value = value with {Type = Type};
state = state with {Type = Type!};
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial record PatchRocket
public Rocket.Surgery.LaunchPad.Foundation.Assigned<Guid> Id { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<Guid>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool Id { get; init; }
Expand All @@ -23,25 +24,25 @@ public partial record PatchRocket
{Id = Id.HasBeenSet(), SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Request ApplyChanges(global::Request value)
public global::Request ApplyChanges(global::Request state)
{
if (Id.HasBeenSet())
{
value = value with {Id = Id};
state = state with {Id = Id!};
}

if (SerialNumber.HasBeenSet())
{
value = value with {SerialNumber = SerialNumber};
state = state with {SerialNumber = SerialNumber!};
}

if (Type.HasBeenSet())
{
value = value with {Type = Type};
state = state with {Type = Type!};
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial record PatchRocket
public Rocket.Surgery.LaunchPad.Foundation.Assigned<Guid> Id { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<Guid>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool Id { get; init; }
Expand All @@ -23,25 +24,25 @@ public partial record PatchRocket
{Id = Id.HasBeenSet(), SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Request ApplyChanges(global::Request value)
public global::Request ApplyChanges(global::Request state)
{
if (Id.HasBeenSet())
{
value = value with {Id = Id};
state = state with {Id = Id!};
}

if (SerialNumber.HasBeenSet())
{
value = value with {SerialNumber = SerialNumber};
state = state with {SerialNumber = SerialNumber!};
}

if (Type.HasBeenSet())
{
value = value with {Type = Type};
state = state with {Type = Type!};
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Sample.Core.Operations.Rockets
{
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool SerialNumber { get; init; }
Expand All @@ -24,20 +25,20 @@ namespace Sample.Core.Operations.Rockets
{SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Sample.Core.Operations.Rockets.Request ApplyChanges(global::Sample.Core.Operations.Rockets.Request value)
public global::Sample.Core.Operations.Rockets.Request ApplyChanges(global::Sample.Core.Operations.Rockets.Request state)
{
if (SerialNumber.HasBeenSet())
{
value = value with {SerialNumber = SerialNumber};
state = state with {SerialNumber = SerialNumber!};
}

if (Type.HasBeenSet())
{
value = value with {Type = Type};
state = state with {Type = Type!};
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Sample.Core.Operations.Rockets
{
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string?> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string?>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool SerialNumber { get; init; }
Expand All @@ -22,20 +23,20 @@ namespace Sample.Core.Operations.Rockets
{SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Sample.Core.Operations.Rockets.Request ApplyChanges(global::Sample.Core.Operations.Rockets.Request value)
public global::Sample.Core.Operations.Rockets.Request ApplyChanges(global::Sample.Core.Operations.Rockets.Request state)
{
if (SerialNumber.HasBeenSet())
{
value = value with {SerialNumber = SerialNumber};
state = state with {SerialNumber = SerialNumber!};
}

if (Type.HasBeenSet())
{
value = value with {Type = Type};
state = state with {Type = Type!};
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Sample.Core.Operations.Rockets
{
public Rocket.Surgery.LaunchPad.Foundation.Assigned<string> SerialNumber { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<string>.Empty(default);
public Rocket.Surgery.LaunchPad.Foundation.Assigned<int?> Type { get; set; } = Rocket.Surgery.LaunchPad.Foundation.Assigned<int?>.Empty(default);
#pragma warning disable CA1034
public record Changes
{
public bool SerialNumber { get; init; }
Expand All @@ -22,20 +23,20 @@ namespace Sample.Core.Operations.Rockets
{SerialNumber = SerialNumber.HasBeenSet(), Type = Type.HasBeenSet()};
}

public global::Sample.Core.Operations.Rockets.Request ApplyChanges(global::Sample.Core.Operations.Rockets.Request value)
public global::Sample.Core.Operations.Rockets.Request ApplyChanges(global::Sample.Core.Operations.Rockets.Request state)
{
if (SerialNumber.HasBeenSet())
{
value = value with {SerialNumber = SerialNumber};
state = state with {SerialNumber = SerialNumber!};
}

if (Type.HasBeenSet())
{
value = value with {Type = Type};
state = state with {Type = Type!};
}

ResetChanges();
return value;
return state;
}

public PatchRocket ResetChanges()
Expand Down

0 comments on commit 8a7e5d9

Please sign in to comment.