Changeset 101

User picture

Author: marisic.net

(2009/02/11 19:04) About 3 years ago


  

Affected files

Updated StructuredWeb/StructuredWeb/Modules/Modules.csproj Download diff

100101
73
      <Project>{F5A7225F-4CC0-482A-B8D5-37A276634EA1}</Project>
73
      <Project>{F5A7225F-4CC0-482A-B8D5-37A276634EA1}</Project>
74
      <Name>Common</Name>
74
      <Name>Common</Name>
75
    </ProjectReference>
75
    </ProjectReference>
76
    <ProjectReference Include="..\Validation\ValidationFramework\ValidationFramework.csproj">
77
      <Project>{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA}</Project>
78
      <Name>ValidationFramework</Name>
79
    </ProjectReference>
76
  </ItemGroup>
80
  </ItemGroup>
77
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
81
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
78
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
82
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 

Updated StructuredWeb/StructuredWeb/Modules/StructureMapBootstrapper.cs Download diff

100101
1
#region Using Statements
1
#region Using Statements
2
2
3
using StructuredWeb.Domain.Business;
3
using StructuredWeb.Modules.EmployeeManagement;
4
using StructuredWeb.Modules.EmployeeManagement;
4
using StructuredWeb.Repository.NHibernateDataAccess;
5
using StructuredWeb.Repository.NHibernateDataAccess;
5
using StructuredWeb.Repository.NHibernateDataAccess.Conversation;
6
using StructuredWeb.Repository.NHibernateDataAccess.Conversation;
6
using StructuredWeb.Repository.NHibernateDataAccess.Providers;
7
using StructuredWeb.Repository.NHibernateDataAccess.Providers;
7
using StructuredWeb.Repository.NHibernateDataAccess.Providers.Interfaces;
8
using StructuredWeb.Repository.NHibernateDataAccess.Providers.Interfaces;
9
using StructuredWeb.ValidationFramework.Interfaces;
10
using StructuredWeb.ValidationFramework.Validators;
8
using StructureMap;
11
using StructureMap;
9
using StructureMap.Attributes;
12
using StructureMap.Attributes;
10
using StructureMap.Configuration.DSL;
13
using StructureMap.Configuration.DSL;
...
...
74
                //Session Factory is life time
77
                //Session Factory is life time
75
                ForRequestedType<INHibernateSessionManager>().TheDefaultIsConcreteType<NHibernateSessionManager>().CacheBy(InstanceScope.Singleton);
78
                ForRequestedType<INHibernateSessionManager>().TheDefaultIsConcreteType<NHibernateSessionManager>().CacheBy(InstanceScope.Singleton);
76
79
80
                //Validators are per instance
81
                ForRequestedType<IValidator<Employee>>().TheDefaultIsConcreteType<EmployeeValidator>();
82
77
                //Scan(x =>
83
                //Scan(x =>
78
                //         {
84
                //         {
79
                //             x.TheCallingAssembly();
85
                //             x.TheCallingAssembly();
80
                //             x.With<PresenterScanner>();
86
                //             x.With<PresenterScanner>();
81
                //         });
87
                //         });
82
88
83
                SetAllProperties(policy=> policy.NameMatches(name=> name.EndsWith("Presenter")));
89
                SetAllProperties(policy => policy.NameMatches(name => name.EndsWith("Presenter")));
84
            }
90
            }
85
        }
91
        }
86
92

Updated StructuredWeb/StructuredWeb/StructuredWeb.sln Download diff

100101
104
		Library\NUnit.Framework.ExtensionMethods\NUnit.Framework.ExtensionMethods.xml = Library\NUnit.Framework.ExtensionMethods\NUnit.Framework.ExtensionMethods.xml
104
		Library\NUnit.Framework.ExtensionMethods\NUnit.Framework.ExtensionMethods.xml = Library\NUnit.Framework.ExtensionMethods\NUnit.Framework.ExtensionMethods.xml
105
	EndProjectSection
105
	EndProjectSection
106
EndProject
106
EndProject
107
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Validation", "Validation", "{AF547254-B43B-4C61-AE27-E79FCE8908C4}"
108
EndProject
109
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ValidationFramework",
"Validation\ValidationFramework\ValidationFramework.csproj", "{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA}"
110
EndProject
111
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{64BF35A4-B3AB-4E2E-8E40-397C280E51F4}"
112
EndProject
113
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ValidationFrameworkTest",
"Validation\Test\ValidationFrameworkTest\ValidationFrameworkTest.csproj", "{EFF63E05-8B12-4C2A-9967-9CE55FC00596}"
114
EndProject
107
Global
115
Global
108
	GlobalSection(SubversionScc) = preSolution
116
	GlobalSection(SubversionScc) = preSolution
109
		Svn-Managed = True
117
		Svn-Managed = True
...
...
138
		{1B4146E9-3C1E-4E74-8ADA-1547057809B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
146
		{1B4146E9-3C1E-4E74-8ADA-1547057809B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
139
		{1B4146E9-3C1E-4E74-8ADA-1547057809B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
147
		{1B4146E9-3C1E-4E74-8ADA-1547057809B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
140
		{1B4146E9-3C1E-4E74-8ADA-1547057809B6}.Release|Any CPU.Build.0 = Release|Any CPU
148
		{1B4146E9-3C1E-4E74-8ADA-1547057809B6}.Release|Any CPU.Build.0 = Release|Any CPU
149
		{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
150
		{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
151
		{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
152
		{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA}.Release|Any CPU.Build.0 = Release|Any CPU
153
		{EFF63E05-8B12-4C2A-9967-9CE55FC00596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
154
		{EFF63E05-8B12-4C2A-9967-9CE55FC00596}.Debug|Any CPU.Build.0 = Debug|Any CPU
155
		{EFF63E05-8B12-4C2A-9967-9CE55FC00596}.Release|Any CPU.ActiveCfg = Release|Any CPU
156
		{EFF63E05-8B12-4C2A-9967-9CE55FC00596}.Release|Any CPU.Build.0 = Release|Any CPU
141
	EndGlobalSection
157
	EndGlobalSection
142
	GlobalSection(SolutionProperties) = preSolution
158
	GlobalSection(SolutionProperties) = preSolution
143
		HideSolutionNode = FALSE
159
		HideSolutionNode = FALSE
...
...
155
		{6C7CE1F9-3212-452B-A566-3AEDA501B483} = {1C4F4C86-81EE-4EC8-91A0-5911BB3A2E0B}
171
		{6C7CE1F9-3212-452B-A566-3AEDA501B483} = {1C4F4C86-81EE-4EC8-91A0-5911BB3A2E0B}
156
		{73BF2E1A-B55C-43E7-B390-572AF3CC6EE8} = {1C4F4C86-81EE-4EC8-91A0-5911BB3A2E0B}
172
		{73BF2E1A-B55C-43E7-B390-572AF3CC6EE8} = {1C4F4C86-81EE-4EC8-91A0-5911BB3A2E0B}
157
		{90EEFC33-1A60-4710-AB1D-03F225462D6E} = {6C7CE1F9-3212-452B-A566-3AEDA501B483}
173
		{90EEFC33-1A60-4710-AB1D-03F225462D6E} = {6C7CE1F9-3212-452B-A566-3AEDA501B483}
174
		{46C2EEB8-7EF4-40EE-82AB-C0CD5716DBEA} = {AF547254-B43B-4C61-AE27-E79FCE8908C4}
175
		{64BF35A4-B3AB-4E2E-8E40-397C280E51F4} = {AF547254-B43B-4C61-AE27-E79FCE8908C4}
176
		{EFF63E05-8B12-4C2A-9967-9CE55FC00596} = {64BF35A4-B3AB-4E2E-8E40-397C280E51F4}
158
	EndGlobalSection
177
	EndGlobalSection
159
EndGlobal
178
EndGlobal

Added StructuredWeb/StructuredWeb/Validation/Test/ValidationFrameworkTest/EmployeeValidatorTest.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/Test/ValidationFrameworkTest/Properties/AssemblyInfo.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/Test/ValidationFrameworkTest/ValidationFrameworkTest.csproj

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/Interfaces/IValidator.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/Properties/AssemblyInfo.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/Result/ValidationMessage.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/Result/ValidationResult.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/ValidationFactory.cs

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/ValidationFramework.csproj

Show contents

Added StructuredWeb/StructuredWeb/Validation/ValidationFramework/Validators/EmployeeValidator.cs

Show contents