-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EES-5738 Changes in response to PR comments
- Loading branch information
1 parent
9cce1fa
commit e1f68a0
Showing
15 changed files
with
120 additions
and
112 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
15 changes: 8 additions & 7 deletions
15
...aSetFileGeographicLevelsTable.Designer.cs → ...aSetFileGeographicLevelsTable.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
50 changes: 0 additions & 50 deletions
50
...nStatistics.Content.Model.Tests/Fixtures/DataSetFileGeographicLevelGeneratorExtensions.cs
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...tics.Content.Model.Tests/Fixtures/DataSetFileVersionGeographicLevelGeneratorExtensions.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,51 @@ | ||
using System; | ||
using GovUk.Education.ExploreEducationStatistics.Common.Model.Data; | ||
using GovUk.Education.ExploreEducationStatistics.Common.Tests.Fixtures; | ||
|
||
namespace GovUk.Education.ExploreEducationStatistics.Content.Model.Tests.Fixtures; | ||
|
||
public static class DataSetFileVersionGeographicLevelGeneratorExtensions | ||
{ | ||
public static Generator<DataSetFileVersionGeographicLevel> DefaultDataSetFileVersionGeographicLevel(this DataFixture fixture) | ||
=> fixture.Generator<DataSetFileVersionGeographicLevel>().WithDefaults(); | ||
|
||
public static Generator<DataSetFileVersionGeographicLevel> WithDefaults(this Generator<DataSetFileVersionGeographicLevel> generator) | ||
=> generator.ForInstance(d => d.SetDefaults()); | ||
|
||
public static InstanceSetters<DataSetFileVersionGeographicLevel> SetDefaults( | ||
this InstanceSetters<DataSetFileVersionGeographicLevel> setters) | ||
=> setters | ||
.SetDefault(p => p.DataSetFileVersionId); | ||
|
||
public static Generator<DataSetFileVersionGeographicLevel> WithDataSetFileVersion( | ||
this Generator<DataSetFileVersionGeographicLevel> generator, | ||
File dataSetFileVersion) | ||
=> generator.ForInstance(s => s.SetDataSetFileVersion(dataSetFileVersion)); | ||
|
||
public static Generator<DataSetFileVersionGeographicLevel> WithDataSetFileVersionId( | ||
this Generator<DataSetFileVersionGeographicLevel> generator, | ||
Guid dataSetFileVersionId) | ||
=> generator.ForInstance(s => s.SetDataSetFileVersionId(dataSetFileVersionId)); | ||
|
||
public static Generator<DataSetFileVersionGeographicLevel> WithGeographicLevel( | ||
this Generator<DataSetFileVersionGeographicLevel> generator, | ||
GeographicLevel geographicLevel) | ||
=> generator.ForInstance(s => s.SetGeographicLevel(geographicLevel)); | ||
|
||
public static InstanceSetters<DataSetFileVersionGeographicLevel> SetDataSetFileVersion( | ||
this InstanceSetters<DataSetFileVersionGeographicLevel> setters, | ||
File dataSetFileVersion) | ||
=> setters | ||
.Set(f => f.DataSetFileVersion, dataSetFileVersion) | ||
.Set(f => f.DataSetFileVersionId, dataSetFileVersion.Id); | ||
|
||
public static InstanceSetters<DataSetFileVersionGeographicLevel> SetDataSetFileVersionId( | ||
this InstanceSetters<DataSetFileVersionGeographicLevel> setters, | ||
Guid dataSetFileVersionId) | ||
=> setters.Set(f => f.DataSetFileVersionId, dataSetFileVersionId); | ||
|
||
public static InstanceSetters<DataSetFileVersionGeographicLevel> SetGeographicLevel( | ||
this InstanceSetters<DataSetFileVersionGeographicLevel> setters, | ||
GeographicLevel geographicLevel) | ||
=> setters.Set(f => f.GeographicLevel, geographicLevel); | ||
} |
Oops, something went wrong.