Skip to content

Commit

Permalink
Using JSON format as data source and removing iTunes xml file and con…
Browse files Browse the repository at this point in the history
…verter (#34)
  • Loading branch information
lerocha authored Jan 25, 2024
1 parent 2a60e45 commit 9e8e24a
Show file tree
Hide file tree
Showing 24 changed files with 104,487 additions and 188,750 deletions.
9 changes: 0 additions & 9 deletions ChinookDatabase.Test/ChinookDatabase.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>DatabaseFixture.cs</LastGenOutput>
</None>
<None Update="TestData\ExpectedDataSet.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="TestData\iTunesLibraryTestData.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="TestData\NonMediaTestData.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions ChinookDatabase.Test/DatabaseTests/DatabaseFixture.tt
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ using <#= option.Namespace #>;

<#
FileInfo thisFile = new FileInfo(Host.TemplateFile);
ChinookDataSet ds = new ChinookDataSet();
ds.ReadXml(thisFile.DirectoryName + @"\..\..\ChinookDatabase\DataSources\_Xml\ChinookData.xml");
var json = File.ReadAllText(thisFile.DirectoryName + @"\..\..\ChinookDatabase\DataSources\ChinookData.json");
var ds = JsonConvert.DeserializeObject<ChinookDataSet>(json);
#>
namespace ChinookDatabase.Test.DatabaseTests
{
Expand Down
Loading

0 comments on commit 9e8e24a

Please sign in to comment.