Skip to content

Commit

Permalink
Start implementing model for claim.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrubhar_cp authored and dstrubhar_cp committed Aug 31, 2010
1 parent 5efdcb0 commit a93fff9
Show file tree
Hide file tree
Showing 25 changed files with 701 additions and 6 deletions.
10 changes: 10 additions & 0 deletions Local.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Local" id="26abe35c-8a16-48bc-9471-6e9e1069b36c" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are default test settings for a local test run.</Description>
<Deployment enabled="false" />
<Execution>
<TestTypeSpecific />
<AgentRule name="Execution Agents">
</AgentRule>
</Execution>
</TestSettings>
57 changes: 53 additions & 4 deletions OopFactory.X12.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,37 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OopFactory.X12", "src\OopFa
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OopFactory.X12.X12Parser", "src\OopFactory.X12.X12Parser\OopFactory.X12.X12Parser.csproj", "{19307F16-3D8C-4E4D-8903-8BAD12EDAE78}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OopFactory.X12.Presentation", "src\OopFactory.X12.Presentation\OopFactory.X12.Presentation.csproj", "{16A8617F-AB79-4CBD-8C00-43A99C33040C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OopFactory.X12.Model", "src\OopFactory.X12.Model\OopFactory.X12.Model.csproj", "{7AA513C8-0317-4470-B1C9-374BABC1A5EC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OopFactory.X12.Tests.Unit", "tests\OopFactory.X12.Tests.Unit\OopFactory.X12.Tests.Unit.csproj", "{CE09ACD3-898F-467D-BA43-3FDF181A51AE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{57B7B5ED-5C3D-464D-B67C-7623BBBA8AC0}"
ProjectSection(SolutionItems) = preProject
Local.testsettings = Local.testsettings
OopFactory.X12.vsmdi = OopFactory.X12.vsmdi
TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
EndProjectSection
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccNumberOfProjects = 4
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs11
SccLocalPath0 = .
SccProjectUniqueName1 = src\\OopFactory.X12.Parsing\\OopFactory.X12.Parsing.csproj
SccProjectName1 = src/OopFactory.X12.Parsing
SccLocalPath1 = src\\OopFactory.X12.Parsing
SccProjectUniqueName1 = src\\OopFactory.X12.Presentation\\OopFactory.X12.Presentation.csproj
SccProjectName1 = src/OopFactory.X12.Presentation
SccLocalPath1 = src\\OopFactory.X12.Presentation
SccProjectUniqueName2 = src\\OopFactory.X12.Model\\OopFactory.X12.Model.csproj
SccProjectName2 = src/OopFactory.X12.Model
SccLocalPath2 = src\\OopFactory.X12.Model
SccProjectUniqueName3 = tests\\OopFactory.X12.Tests.Unit\\OopFactory.X12.Tests.Unit.csproj
SccProjectName3 = tests/OopFactory.X12.Tests.Unit
SccLocalPath3 = tests\\OopFactory.X12.Tests.Unit
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = OopFactory.X12.vsmdi
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -47,6 +66,36 @@ Global
{19307F16-3D8C-4E4D-8903-8BAD12EDAE78}.Release|Mixed Platforms.Build.0 = Release|x86
{19307F16-3D8C-4E4D-8903-8BAD12EDAE78}.Release|x86.ActiveCfg = Release|x86
{19307F16-3D8C-4E4D-8903-8BAD12EDAE78}.Release|x86.Build.0 = Release|x86
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Debug|x86.ActiveCfg = Debug|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Release|Any CPU.Build.0 = Release|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{16A8617F-AB79-4CBD-8C00-43A99C33040C}.Release|x86.ActiveCfg = Release|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Debug|x86.ActiveCfg = Debug|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Release|Any CPU.Build.0 = Release|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{7AA513C8-0317-4470-B1C9-374BABC1A5EC}.Release|x86.ActiveCfg = Release|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Debug|x86.ActiveCfg = Debug|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Release|Any CPU.Build.0 = Release|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{CE09ACD3-898F-467D-BA43-3FDF181A51AE}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 6 additions & 0 deletions OopFactory.X12.vsmdi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
<RunConfiguration id="26abe35c-8a16-48bc-9471-6e9e1069b36c" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</TestList>
</TestLists>
21 changes: 21 additions & 0 deletions TraceAndTestImpact.testsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Trace and Test Impact" id="2a2938fc-a2c2-44fa-97d8-f9d5fc741b40" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are test settings for Trace and Test Impact.</Description>
<Execution>
<TestTypeSpecific />
<AgentRule name="Execution Agents">
<DataCollectors>
<DataCollector uri="datacollector://microsoft/SystemInfo/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="System Information">
</DataCollector>
<DataCollector uri="datacollector://microsoft/ActionLog/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.ManualTest.ActionLog.ActionLogPlugin, Microsoft.VisualStudio.TestTools.ManualTest.ActionLog, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Actions">
</DataCollector>
<DataCollector uri="datacollector://microsoft/HttpProxy/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.HttpProxyCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="ASP.NET Client Proxy for IntelliTrace and Test Impact">
</DataCollector>
<DataCollector uri="datacollector://microsoft/TestImpact/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TestImpactDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Test Impact">
</DataCollector>
<DataCollector uri="datacollector://microsoft/TraceDebugger/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="IntelliTrace">
</DataCollector>
</DataCollectors>
</AgentRule>
</Execution>
</TestSettings>
11 changes: 11 additions & 0 deletions src/OopFactory.X12.Model/Claims/Claim.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OopFactory.X12.Model.Claims
{
public class Claim
{
}
}
14 changes: 14 additions & 0 deletions src/OopFactory.X12.Model/EntityName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OopFactory.X12.Model
{
public class EntityName
{
public string FirstName { get; set; }
public string MiddleName { get; set; }
public string LastName { get; set; }
}
}
24 changes: 24 additions & 0 deletions src/OopFactory.X12.Model/ModelExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;

namespace OopFactory.X12.Model
{
public static class ModelExtensions
{
public static TModel Deserialize<TModel>(string xml)
{
var serializer = new XmlSerializer(typeof(TModel));

MemoryStream ms = new MemoryStream();
XmlTextWriter writer = new XmlTextWriter(ms, Encoding.UTF8);
return (TModel)serializer.Deserialize(ms);
}


}
}
63 changes: 63 additions & 0 deletions src/OopFactory.X12.Model/OopFactory.X12.Model.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7AA513C8-0317-4470-B1C9-374BABC1A5EC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OopFactory.X12.Model</RootNamespace>
<AssemblyName>OopFactory.X12.Model</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Claims\Claim.cs" />
<Compile Include="EntityName.cs" />
<Compile Include="ModelExtensions.cs" />
<Compile Include="PostalAddress.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
10 changes: 10 additions & 0 deletions src/OopFactory.X12.Model/OopFactory.X12.Model.csproj.vspscc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
11 changes: 11 additions & 0 deletions src/OopFactory.X12.Model/PostalAddress.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OopFactory.X12.Model
{
class PostalAddress
{
}
}
36 changes: 36 additions & 0 deletions src/OopFactory.X12.Model/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OopFactory.X12.Model")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Hewlett-Packard")]
[assembly: AssemblyProduct("OopFactory.X12.Model")]
[assembly: AssemblyCopyright("Copyright © Hewlett-Packard 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b55aae66-63d3-4f1e-8886-78c0ed26af71")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
11 changes: 11 additions & 0 deletions src/OopFactory.X12.Presentation/Claims/ClaimPdfRenderingService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OopFactory.X12.Presentation.Claims
{
public class ClaimPdfRenderingService
{
}
}
14 changes: 14 additions & 0 deletions src/OopFactory.X12.Presentation/Common/ContentLocation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OopFactory.X12.Presentation.Common
{
public class ContentLocation
{
public float XPos { get; set; }
public float YPos { get; set; }
public string Content { get; set; }
}
}
27 changes: 27 additions & 0 deletions src/OopFactory.X12.Presentation/Common/ContentPage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OopFactory.X12.Presentation.Common
{
public class ContentPage
{
public ContentPage()
{
FontName = "Courier";
FontSize = 12f;
XScale = 72 / 10; // 10 characters per inch
YScale = 72 / 6; // 6 lines per inch
if (Contents == null) Contents = new Dictionary<string, ContentLocation>();

}
public string FontName { get; set; }
public float FontSize { get; set; }
public float XScale { get; set; }
public float YScale { get; set; }

public Dictionary<string, ContentLocation> Contents { get; set; }

}
}
Loading

0 comments on commit a93fff9

Please sign in to comment.