Skip to content

Commit

Permalink
Renamed CSharp* to Generation*
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Feb 3, 2020
1 parent d634f94 commit 4e15bbb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

namespace Rappen.XTB.LCG
{
public class CSharpUtils
public class GenerationUtils
{
public static bool GenerateClasses(List<EntityMetadataProxy> entitiesmetadata, Settings settings, IConstantFileWriter fileWriter)
public static bool GenerateFiles(List<EntityMetadataProxy> entitiesmetadata, Settings settings, IConstantFileWriter fileWriter)
{
var selectedentities = entitiesmetadata.Where(e => e.Selected).ToList();
var commonentity = GetCommonEntity(selectedentities, settings);
Expand Down
2 changes: 1 addition & 1 deletion LCG-UDG/LCG-UDG-Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<Compile Include="FormatDialogLCG.Designer.cs">
<DependentUpon>FormatDialogLCG.cs</DependentUpon>
</Compile>
<Compile Include="Generation\CSharpUtils.cs" />
<Compile Include="Generation\GenerationUtils.cs" />
<Compile Include="Metadata\EntityMetadataProxy.cs" />
<Compile Include="Settings\CommonSettings.cs" />
<Compile Include="Generation\Extensions.cs" />
Expand Down
2 changes: 1 addition & 1 deletion LCG-UDG/LCG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void btnGenerate_Click(object sender, EventArgs e)
GetSettingsFromUI();
GetSelectionFromUI();
var filewriter = settings.GetWriter(ConnectionDetail.WebApplicationUrl);
if (CSharpUtils.GenerateClasses(entities, settings, filewriter))
if (GenerationUtils.GenerateFiles(entities, settings, filewriter))
{
var message = filewriter.GetResult(settings);
if (isUML)
Expand Down
2 changes: 1 addition & 1 deletion LCGCmd/LCGHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void GenerateConstants()
LoadEntities();
RestoreSelectedEntities();
var writer = Settings.GetWriter(this.crmConnection.WebApplicationUrl);
if (CSharpUtils.GenerateClasses(entities, Settings, writer))
if (GenerationUtils.GenerateFiles(entities, Settings, writer))
{
Console.Write(writer.GetResult(Settings));
}
Expand Down
2 changes: 1 addition & 1 deletion LCGTests/CSharpUtilTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void GenerateClasses_ForEmptyMetadata_Should_GenerateLogicalName()
.Invokes((Settings s, string e, string f) => { entity = e; });

// Act
CSharpUtils.GenerateClasses(values, settings, fakeWriter);
GenerationUtils.GenerateFiles(values, settings, fakeWriter);

// Assert
config.MustHaveHappened();
Expand Down

0 comments on commit 4e15bbb

Please sign in to comment.