Skip to content

Commit

Permalink
fix missings
Browse files Browse the repository at this point in the history
  • Loading branch information
Riges committed Aug 24, 2024
1 parent c4ce30f commit 24c7b41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
6 changes: 1 addition & 5 deletions src/Netatmo/Models/Client/DataResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ public record DataResponse(
[property: JsonProperty("time_exec")] double? TimeExec,
[property: JsonProperty("time_server")] Instant? TimeServer);

public record DataResponse<T>(
string Status,
double? TimeExec,
Instant? TimeServer,
[property: JsonProperty("body")] T Body)
public record DataResponse<T>(string Status, double? TimeExec, Instant? TimeServer, [property: JsonProperty("body")] T Body)
: DataResponse(Status, TimeExec, TimeServer);
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@

namespace Netatmo.Models.Client.Energy;

public record CreateHomeScheduleResponse(
string Status,
double? TimeExec,
Instant? TimeServer,
[property: JsonProperty("schedule_id")]
string ScheduleId) : DataResponse(Status, TimeExec, TimeServer);
public record CreateHomeScheduleResponse(string Status, double? TimeExec, Instant? TimeServer, [property: JsonProperty("schedule_id")] string ScheduleId)
: DataResponse(Status, TimeExec, TimeServer);
11 changes: 6 additions & 5 deletions tests/Netatmo.Tests/Attributes/AutoDomainDataAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

namespace Netatmo.Tests.Attributes;

public class AutoDomainDataAttribute() : AutoDataAttribute(
() => new Fixture().Customize(new AutoNSubstituteCustomization { ConfigureMembers = true })
.Customize(new ClockCustomization())
.Customize(new CredentialManagerCustomization())
.Customize(new ClientsCustomization()));
public class AutoDomainDataAttribute()
: AutoDataAttribute(
() => new Fixture().Customize(new AutoNSubstituteCustomization { ConfigureMembers = true })
.Customize(new ClockCustomization())
.Customize(new CredentialManagerCustomization())
.Customize(new ClientsCustomization()));

public class ClockCustomization : ICustomization
{
Expand Down

0 comments on commit 24c7b41

Please sign in to comment.