├── .gitattributes ├── .gitignore ├── LooseCoupling ├── AdditionalFiles │ └── People.txt ├── Common │ ├── Common.csproj │ ├── IPersonRepository.cs │ └── Person.cs ├── LateBindingAssemblies │ ├── Newtonsoft.Json.dll │ ├── PersonRepository.CSV.deps.json │ ├── PersonRepository.CSV.dll │ ├── PersonRepository.Service.deps.json │ └── PersonRepository.Service.dll ├── LooseCoupling.sln ├── People.Service │ ├── Controllers │ │ └── PeopleController.cs │ ├── Models │ │ ├── IPeopleProvider.cs │ │ └── StaticPeopleProvider.cs │ ├── People.Service.csproj │ ├── Program.cs │ ├── Properties │ │ └── launchSettings.json │ ├── Startup.cs │ ├── appsettings.Development.json │ └── appsettings.json ├── PeopleViewer.Autofac.LateBinding │ ├── App.config │ ├── App.xaml │ ├── App.xaml.cs │ ├── Converters.cs │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── PeopleViewer.Autofac.LateBinding.csproj │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ └── autofac.json ├── PeopleViewer.Autofac │ ├── App.config │ ├── App.xaml │ ├── App.xaml.cs │ ├── Converters.cs │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── PeopleViewer.Autofac.csproj │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ └── packages.config ├── PeopleViewer.Ninject │ ├── App.config │ ├── App.xaml │ ├── App.xaml.cs │ ├── Converters.cs │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── PeopleViewer.Ninject.csproj │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ └── packages.config ├── PeopleViewer.Presentation.Tests │ ├── FakeRepository.cs │ ├── PeopleViewModelTests.cs │ ├── PeopleViewer.Presentation.Tests.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── packages.config ├── PeopleViewer.Presentation │ ├── PeopleViewModel.cs │ └── PeopleViewer.Presentation.csproj ├── PeopleViewer │ ├── App.config │ ├── App.xaml │ ├── App.xaml.cs │ ├── Converters.cs │ ├── MainWindow.xaml │ ├── MainWindow.xaml.cs │ ├── PeopleViewer.csproj │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ └── packages.config ├── PersonRepository.CSV.Tests │ ├── CSVRepositoryTests.cs │ ├── FakeFileLoader.cs │ ├── PersonRepository.CSV.Tests.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TestData.cs │ └── packages.config ├── PersonRepository.CSV │ ├── CSVFileLoader.cs │ ├── CSVRepository.cs │ └── PersonRepository.CSV.csproj ├── PersonRepository.Caching │ ├── CachingRepository.cs │ └── PersonRepository.Caching.csproj └── PersonRepository.Service │ ├── PersonRepository.Service.csproj │ └── ServiceRepository.cs ├── README.md ├── SLIDES-DependencyInjection.pdf └── TightCoupling ├── Common ├── Common.csproj └── Person.cs ├── People.Service ├── Controllers │ └── PeopleController.cs ├── Models │ ├── IPeopleProvider.cs │ └── StaticPeopleProvider.cs ├── People.Service.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── Startup.cs ├── appsettings.Development.json └── appsettings.json ├── PeopleViewer.Presentation ├── PeopleViewModel.cs └── PeopleViewer.Presentation.csproj ├── PeopleViewer ├── App.config ├── App.xaml ├── App.xaml.cs ├── Converters.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── PeopleViewer.csproj ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── packages.config ├── PersonRepository.Service ├── PersonRepository.Service.csproj └── ServiceRepository.cs └── TightCoupling.sln /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | artifacts/ 46 | 47 | *_i.c 48 | *_p.c 49 | *_i.h 50 | *.ilk 51 | *.meta 52 | *.obj 53 | *.pch 54 | *.pdb 55 | *.pgc 56 | *.pgd 57 | *.rsp 58 | *.sbr 59 | *.tlb 60 | *.tli 61 | *.tlh 62 | *.tmp 63 | *.tmp_proj 64 | *.log 65 | *.vspscc 66 | *.vssscc 67 | .builds 68 | *.pidb 69 | *.svclog 70 | *.scc 71 | 72 | # Chutzpah Test files 73 | _Chutzpah* 74 | 75 | # Visual C++ cache files 76 | ipch/ 77 | *.aps 78 | *.ncb 79 | *.opendb 80 | *.opensdf 81 | *.sdf 82 | *.cachefile 83 | 84 | # Visual Studio profiler 85 | *.psess 86 | *.vsp 87 | *.vspx 88 | *.sap 89 | 90 | # TFS 2012 Local Workspace 91 | $tf/ 92 | 93 | # Guidance Automation Toolkit 94 | *.gpState 95 | 96 | # ReSharper is a .NET coding add-in 97 | _ReSharper*/ 98 | *.[Rr]e[Ss]harper 99 | *.DotSettings.user 100 | 101 | # JustCode is a .NET coding add-in 102 | .JustCode 103 | 104 | # TeamCity is a build add-in 105 | _TeamCity* 106 | 107 | # DotCover is a Code Coverage Tool 108 | *.dotCover 109 | 110 | # NCrunch 111 | _NCrunch_* 112 | .*crunch*.local.xml 113 | nCrunchTemp_* 114 | 115 | # MightyMoose 116 | *.mm.* 117 | AutoTest.Net/ 118 | 119 | # Web workbench (sass) 120 | .sass-cache/ 121 | 122 | # Installshield output folder 123 | [Ee]xpress/ 124 | 125 | # DocProject is a documentation generator add-in 126 | DocProject/buildhelp/ 127 | DocProject/Help/*.HxT 128 | DocProject/Help/*.HxC 129 | DocProject/Help/*.hhc 130 | DocProject/Help/*.hhk 131 | DocProject/Help/*.hhp 132 | DocProject/Help/Html2 133 | DocProject/Help/html 134 | 135 | # Click-Once directory 136 | publish/ 137 | 138 | # Publish Web Output 139 | *.[Pp]ublish.xml 140 | *.azurePubxml 141 | # TODO: Comment the next line if you want to checkin your web deploy settings 142 | # but database connection strings (with potential passwords) will be unencrypted 143 | *.pubxml 144 | *.publishproj 145 | 146 | # NuGet Packages 147 | *.nupkg 148 | # The packages folder can be ignored because of Package Restore 149 | **/packages/* 150 | # except build/, which is used as an MSBuild target. 151 | !**/packages/build/ 152 | # Uncomment if necessary however generally it will be regenerated when needed 153 | #!**/packages/repositories.config 154 | # NuGet v3's project.json files produces more ignoreable files 155 | *.nuget.props 156 | *.nuget.targets 157 | 158 | # Microsoft Azure Build Output 159 | csx/ 160 | *.build.csdef 161 | 162 | # Microsoft Azure Emulator 163 | ecf/ 164 | rcf/ 165 | 166 | # Microsoft Azure ApplicationInsights config file 167 | ApplicationInsights.config 168 | 169 | # Windows Store app package directory 170 | AppPackages/ 171 | BundleArtifacts/ 172 | 173 | # Visual Studio cache files 174 | # files ending in .cache can be ignored 175 | *.[Cc]ache 176 | # but keep track of directories ending in .cache 177 | !*.[Cc]ache/ 178 | 179 | # Others 180 | ClientBin/ 181 | ~$* 182 | *~ 183 | *.dbmdl 184 | *.dbproj.schemaview 185 | *.pfx 186 | *.publishsettings 187 | node_modules/ 188 | orleans.codegen.cs 189 | 190 | # RIA/Silverlight projects 191 | Generated_Code/ 192 | 193 | # Backup & report files from converting an old project file 194 | # to a newer Visual Studio version. Backup files are not needed, 195 | # because we have git ;-) 196 | _UpgradeReport_Files/ 197 | Backup*/ 198 | UpgradeLog*.XML 199 | UpgradeLog*.htm 200 | 201 | # SQL Server files 202 | *.mdf 203 | *.ldf 204 | 205 | # Business Intelligence projects 206 | *.rdl.data 207 | *.bim.layout 208 | *.bim_*.settings 209 | 210 | # Microsoft Fakes 211 | FakesAssemblies/ 212 | 213 | # GhostDoc plugin setting file 214 | *.GhostDoc.xml 215 | 216 | # Node.js Tools for Visual Studio 217 | .ntvs_analysis.dat 218 | 219 | # Visual Studio 6 build log 220 | *.plg 221 | 222 | # Visual Studio 6 workspace options file 223 | *.opt 224 | 225 | # Visual Studio LightSwitch build output 226 | **/*.HTMLClient/GeneratedArtifacts 227 | **/*.DesktopClient/GeneratedArtifacts 228 | **/*.DesktopClient/ModelManifest.xml 229 | **/*.Server/GeneratedArtifacts 230 | **/*.Server/ModelManifest.xml 231 | _Pvt_Extensions 232 | 233 | # Paket dependency manager 234 | .paket/paket.exe 235 | 236 | # FAKE - F# Make 237 | .fake/ -------------------------------------------------------------------------------- /LooseCoupling/AdditionalFiles/People.txt: -------------------------------------------------------------------------------- 1 | 1,John,Koenig,1975/10/17,6, 2 | 2,Dylan,Hunt,2000/10/02,8, 3 | 3,Leela,Turanga,1999/3/28,8,{1} {0} 4 | 4,John,Crichton,1999/03/19,7, 5 | 5,Dave,Lister,1988/02/15,9, 6 | 6,Laura,Roslin,2003/12/8,6, 7 | 7,John,Sheridan,1994/01/26,6, 8 | 8,Dante,Montana,2000/11/01,5, 9 | 9,Isaac,Gampu,1977/09/10,4, 10 | 10,Jeremy,Awesome,1971/05/03,10, -------------------------------------------------------------------------------- /LooseCoupling/Common/Common.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LooseCoupling/Common/IPersonRepository.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace Common 5 | { 6 | public interface IPersonRepository 7 | { 8 | IEnumerable GetPeople(); 9 | Person GetPerson(int id); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /LooseCoupling/Common/Person.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Common 4 | { 5 | public class Person 6 | { 7 | public int Id { get; set; } 8 | public string GivenName { get; set; } 9 | public string FamilyName { get; set; } 10 | public DateTime StartDate { get; set; } 11 | public int Rating { get; set; } 12 | public string FormatString { get; set; } 13 | 14 | public override string ToString() 15 | { 16 | if (string.IsNullOrEmpty(FormatString)) 17 | FormatString = "{0} {1}"; 18 | return string.Format(FormatString, GivenName, FamilyName); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /LooseCoupling/LateBindingAssemblies/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremybytes/learning-dependency-injection/116f6fb26ee661b8055808229aeba3ccfaff7b49/LooseCoupling/LateBindingAssemblies/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /LooseCoupling/LateBindingAssemblies/PersonRepository.CSV.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETStandard,Version=v2.0/", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETStandard,Version=v2.0": {}, 9 | ".NETStandard,Version=v2.0/": { 10 | "PersonRepository.CSV/1.0.0": { 11 | "dependencies": { 12 | "Common": "1.0.0", 13 | "NETStandard.Library": "2.0.3" 14 | }, 15 | "runtime": { 16 | "PersonRepository.CSV.dll": {} 17 | } 18 | }, 19 | "Microsoft.NETCore.Platforms/1.1.0": {}, 20 | "NETStandard.Library/2.0.3": { 21 | "dependencies": { 22 | "Microsoft.NETCore.Platforms": "1.1.0" 23 | } 24 | }, 25 | "Common/1.0.0": { 26 | "runtime": { 27 | "Common.dll": {} 28 | } 29 | } 30 | } 31 | }, 32 | "libraries": { 33 | "PersonRepository.CSV/1.0.0": { 34 | "type": "project", 35 | "serviceable": false, 36 | "sha512": "" 37 | }, 38 | "Microsoft.NETCore.Platforms/1.1.0": { 39 | "type": "package", 40 | "serviceable": true, 41 | "sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", 42 | "path": "microsoft.netcore.platforms/1.1.0", 43 | "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" 44 | }, 45 | "NETStandard.Library/2.0.3": { 46 | "type": "package", 47 | "serviceable": true, 48 | "sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", 49 | "path": "netstandard.library/2.0.3", 50 | "hashPath": "netstandard.library.2.0.3.nupkg.sha512" 51 | }, 52 | "Common/1.0.0": { 53 | "type": "project", 54 | "serviceable": false, 55 | "sha512": "" 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /LooseCoupling/LateBindingAssemblies/PersonRepository.CSV.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremybytes/learning-dependency-injection/116f6fb26ee661b8055808229aeba3ccfaff7b49/LooseCoupling/LateBindingAssemblies/PersonRepository.CSV.dll -------------------------------------------------------------------------------- /LooseCoupling/LateBindingAssemblies/PersonRepository.Service.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETStandard,Version=v2.0/", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETStandard,Version=v2.0": {}, 9 | ".NETStandard,Version=v2.0/": { 10 | "PersonRepository.Service/1.0.0": { 11 | "dependencies": { 12 | "Common": "1.0.0", 13 | "NETStandard.Library": "2.0.3", 14 | "Newtonsoft.Json": "11.0.2" 15 | }, 16 | "runtime": { 17 | "PersonRepository.Service.dll": {} 18 | } 19 | }, 20 | "Microsoft.NETCore.Platforms/1.1.0": {}, 21 | "NETStandard.Library/2.0.3": { 22 | "dependencies": { 23 | "Microsoft.NETCore.Platforms": "1.1.0" 24 | } 25 | }, 26 | "Newtonsoft.Json/11.0.2": { 27 | "runtime": { 28 | "lib/netstandard2.0/Newtonsoft.Json.dll": { 29 | "assemblyVersion": "11.0.0.0", 30 | "fileVersion": "11.0.2.21924" 31 | } 32 | } 33 | }, 34 | "Common/1.0.0": { 35 | "runtime": { 36 | "Common.dll": {} 37 | } 38 | } 39 | } 40 | }, 41 | "libraries": { 42 | "PersonRepository.Service/1.0.0": { 43 | "type": "project", 44 | "serviceable": false, 45 | "sha512": "" 46 | }, 47 | "Microsoft.NETCore.Platforms/1.1.0": { 48 | "type": "package", 49 | "serviceable": true, 50 | "sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", 51 | "path": "microsoft.netcore.platforms/1.1.0", 52 | "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" 53 | }, 54 | "NETStandard.Library/2.0.3": { 55 | "type": "package", 56 | "serviceable": true, 57 | "sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", 58 | "path": "netstandard.library/2.0.3", 59 | "hashPath": "netstandard.library.2.0.3.nupkg.sha512" 60 | }, 61 | "Newtonsoft.Json/11.0.2": { 62 | "type": "package", 63 | "serviceable": true, 64 | "sha512": "sha512-IvJe1pj7JHEsP8B8J8DwlMEx8UInrs/x+9oVY+oCD13jpLu4JbJU2WCIsMRn5C4yW9+DgkaO8uiVE5VHKjpmdQ==", 65 | "path": "newtonsoft.json/11.0.2", 66 | "hashPath": "newtonsoft.json.11.0.2.nupkg.sha512" 67 | }, 68 | "Common/1.0.0": { 69 | "type": "project", 70 | "serviceable": false, 71 | "sha512": "" 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /LooseCoupling/LateBindingAssemblies/PersonRepository.Service.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremybytes/learning-dependency-injection/116f6fb26ee661b8055808229aeba3ccfaff7b49/LooseCoupling/LateBindingAssemblies/PersonRepository.Service.dll -------------------------------------------------------------------------------- /LooseCoupling/LooseCoupling.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.28803.202 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "Common\Common.csproj", "{1B82B92C-6693-4922-AE9A-9CACB5C4E24F}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "People.Service", "People.Service\People.Service.csproj", "{7CA7ABCC-8065-423F-964E-0135D83ADB02}" 9 | EndProject 10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{817DFB31-DAED-403F-9FAD-312AF1E2CE89}" 11 | EndProject 12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "04-Data Storage", "04-Data Storage", "{7C50B4E7-1FB5-45B6-8AB3-5C0409109CB3}" 13 | EndProject 14 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeopleViewer", "PeopleViewer\PeopleViewer.csproj", "{E3FC00AA-A9E7-4E6F-9DDC-5E7C1D21E53A}" 15 | EndProject 16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "01-Application View", "01-Application View", "{DB58D260-0DDF-45D3-9A65-9D0464733819}" 17 | EndProject 18 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "02-Presentation", "02-Presentation", "{E46C5347-AEE9-4C96-96BC-F1B0C549A01C}" 19 | EndProject 20 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PeopleViewer.Presentation", "PeopleViewer.Presentation\PeopleViewer.Presentation.csproj", "{12581640-1ECC-44D0-9A6B-66B28FFFE65F}" 21 | EndProject 22 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03-Data Access", "03-Data Access", "{A7B96D7E-CCC5-42B8-964F-D87FE42B0074}" 23 | EndProject 24 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PersonRepository.Service", "PersonRepository.Service\PersonRepository.Service.csproj", "{F0DB1627-F716-44AF-B545-E4A649EDD771}" 25 | EndProject 26 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PersonRepository.CSV", "PersonRepository.CSV\PersonRepository.CSV.csproj", "{1174395B-80CF-4109-B049-E6F041C4B9A9}" 27 | EndProject 28 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PersonRepository.Caching", "PersonRepository.Caching\PersonRepository.Caching.csproj", "{1A21A62F-0A90-4F94-88AA-341C730F54A7}" 29 | EndProject 30 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Testing", "Testing", "{AC3CFB83-BBF1-4AFD-ADEE-87DCA241A885}" 31 | EndProject 32 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeopleViewer.Presentation.Tests", "PeopleViewer.Presentation.Tests\PeopleViewer.Presentation.Tests.csproj", "{8BB096F4-1DB0-4038-BA69-A4F75406D336}" 33 | EndProject 34 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeopleViewer.Ninject", "PeopleViewer.Ninject\PeopleViewer.Ninject.csproj", "{A8F28521-413D-4E59-82AD-24C6D2B1DA4B}" 35 | EndProject 36 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonRepository.CSV.Tests", "PersonRepository.CSV.Tests\PersonRepository.CSV.Tests.csproj", "{CB1BFAB0-7133-44B2-83B3-1E0C3637E6CE}" 37 | EndProject 38 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeopleViewer.Autofac", "PeopleViewer.Autofac\PeopleViewer.Autofac.csproj", "{1997D367-7DED-497B-9966-A16A8D269C21}" 39 | EndProject 40 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PeopleViewer.Autofac.LateBinding", "PeopleViewer.Autofac.LateBinding\PeopleViewer.Autofac.LateBinding.csproj", "{FB1D1F9B-50D9-403B-8F29-43B4A3F421D1}" 41 | EndProject 42 | Global 43 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 44 | Debug|Any CPU = Debug|Any CPU 45 | Release|Any CPU = Release|Any CPU 46 | EndGlobalSection 47 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 48 | {1B82B92C-6693-4922-AE9A-9CACB5C4E24F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 49 | {1B82B92C-6693-4922-AE9A-9CACB5C4E24F}.Debug|Any CPU.Build.0 = Debug|Any CPU 50 | {1B82B92C-6693-4922-AE9A-9CACB5C4E24F}.Release|Any CPU.ActiveCfg = Release|Any CPU 51 | {1B82B92C-6693-4922-AE9A-9CACB5C4E24F}.Release|Any CPU.Build.0 = Release|Any CPU 52 | {7CA7ABCC-8065-423F-964E-0135D83ADB02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 53 | {7CA7ABCC-8065-423F-964E-0135D83ADB02}.Debug|Any CPU.Build.0 = Debug|Any CPU 54 | {7CA7ABCC-8065-423F-964E-0135D83ADB02}.Release|Any CPU.ActiveCfg = Release|Any CPU 55 | {7CA7ABCC-8065-423F-964E-0135D83ADB02}.Release|Any CPU.Build.0 = Release|Any CPU 56 | {E3FC00AA-A9E7-4E6F-9DDC-5E7C1D21E53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 57 | {E3FC00AA-A9E7-4E6F-9DDC-5E7C1D21E53A}.Debug|Any CPU.Build.0 = Debug|Any CPU 58 | {E3FC00AA-A9E7-4E6F-9DDC-5E7C1D21E53A}.Release|Any CPU.ActiveCfg = Release|Any CPU 59 | {E3FC00AA-A9E7-4E6F-9DDC-5E7C1D21E53A}.Release|Any CPU.Build.0 = Release|Any CPU 60 | {12581640-1ECC-44D0-9A6B-66B28FFFE65F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 61 | {12581640-1ECC-44D0-9A6B-66B28FFFE65F}.Debug|Any CPU.Build.0 = Debug|Any CPU 62 | {12581640-1ECC-44D0-9A6B-66B28FFFE65F}.Release|Any CPU.ActiveCfg = Release|Any CPU 63 | {12581640-1ECC-44D0-9A6B-66B28FFFE65F}.Release|Any CPU.Build.0 = Release|Any CPU 64 | {F0DB1627-F716-44AF-B545-E4A649EDD771}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 65 | {F0DB1627-F716-44AF-B545-E4A649EDD771}.Debug|Any CPU.Build.0 = Debug|Any CPU 66 | {F0DB1627-F716-44AF-B545-E4A649EDD771}.Release|Any CPU.ActiveCfg = Release|Any CPU 67 | {F0DB1627-F716-44AF-B545-E4A649EDD771}.Release|Any CPU.Build.0 = Release|Any CPU 68 | {1174395B-80CF-4109-B049-E6F041C4B9A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 69 | {1174395B-80CF-4109-B049-E6F041C4B9A9}.Debug|Any CPU.Build.0 = Debug|Any CPU 70 | {1174395B-80CF-4109-B049-E6F041C4B9A9}.Release|Any CPU.ActiveCfg = Release|Any CPU 71 | {1174395B-80CF-4109-B049-E6F041C4B9A9}.Release|Any CPU.Build.0 = Release|Any CPU 72 | {1A21A62F-0A90-4F94-88AA-341C730F54A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 73 | {1A21A62F-0A90-4F94-88AA-341C730F54A7}.Debug|Any CPU.Build.0 = Debug|Any CPU 74 | {1A21A62F-0A90-4F94-88AA-341C730F54A7}.Release|Any CPU.ActiveCfg = Release|Any CPU 75 | {1A21A62F-0A90-4F94-88AA-341C730F54A7}.Release|Any CPU.Build.0 = Release|Any CPU 76 | {8BB096F4-1DB0-4038-BA69-A4F75406D336}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 77 | {8BB096F4-1DB0-4038-BA69-A4F75406D336}.Debug|Any CPU.Build.0 = Debug|Any CPU 78 | {8BB096F4-1DB0-4038-BA69-A4F75406D336}.Release|Any CPU.ActiveCfg = Release|Any CPU 79 | {8BB096F4-1DB0-4038-BA69-A4F75406D336}.Release|Any CPU.Build.0 = Release|Any CPU 80 | {A8F28521-413D-4E59-82AD-24C6D2B1DA4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 81 | {A8F28521-413D-4E59-82AD-24C6D2B1DA4B}.Debug|Any CPU.Build.0 = Debug|Any CPU 82 | {A8F28521-413D-4E59-82AD-24C6D2B1DA4B}.Release|Any CPU.ActiveCfg = Release|Any CPU 83 | {A8F28521-413D-4E59-82AD-24C6D2B1DA4B}.Release|Any CPU.Build.0 = Release|Any CPU 84 | {CB1BFAB0-7133-44B2-83B3-1E0C3637E6CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 85 | {CB1BFAB0-7133-44B2-83B3-1E0C3637E6CE}.Debug|Any CPU.Build.0 = Debug|Any CPU 86 | {CB1BFAB0-7133-44B2-83B3-1E0C3637E6CE}.Release|Any CPU.ActiveCfg = Release|Any CPU 87 | {CB1BFAB0-7133-44B2-83B3-1E0C3637E6CE}.Release|Any CPU.Build.0 = Release|Any CPU 88 | {1997D367-7DED-497B-9966-A16A8D269C21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 89 | {1997D367-7DED-497B-9966-A16A8D269C21}.Debug|Any CPU.Build.0 = Debug|Any CPU 90 | {1997D367-7DED-497B-9966-A16A8D269C21}.Release|Any CPU.ActiveCfg = Release|Any CPU 91 | {1997D367-7DED-497B-9966-A16A8D269C21}.Release|Any CPU.Build.0 = Release|Any CPU 92 | {FB1D1F9B-50D9-403B-8F29-43B4A3F421D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 93 | {FB1D1F9B-50D9-403B-8F29-43B4A3F421D1}.Debug|Any CPU.Build.0 = Debug|Any CPU 94 | {FB1D1F9B-50D9-403B-8F29-43B4A3F421D1}.Release|Any CPU.ActiveCfg = Release|Any CPU 95 | {FB1D1F9B-50D9-403B-8F29-43B4A3F421D1}.Release|Any CPU.Build.0 = Release|Any CPU 96 | EndGlobalSection 97 | GlobalSection(SolutionProperties) = preSolution 98 | HideSolutionNode = FALSE 99 | EndGlobalSection 100 | GlobalSection(NestedProjects) = preSolution 101 | {1B82B92C-6693-4922-AE9A-9CACB5C4E24F} = {817DFB31-DAED-403F-9FAD-312AF1E2CE89} 102 | {7CA7ABCC-8065-423F-964E-0135D83ADB02} = {7C50B4E7-1FB5-45B6-8AB3-5C0409109CB3} 103 | {E3FC00AA-A9E7-4E6F-9DDC-5E7C1D21E53A} = {DB58D260-0DDF-45D3-9A65-9D0464733819} 104 | {12581640-1ECC-44D0-9A6B-66B28FFFE65F} = {E46C5347-AEE9-4C96-96BC-F1B0C549A01C} 105 | {F0DB1627-F716-44AF-B545-E4A649EDD771} = {A7B96D7E-CCC5-42B8-964F-D87FE42B0074} 106 | {1174395B-80CF-4109-B049-E6F041C4B9A9} = {A7B96D7E-CCC5-42B8-964F-D87FE42B0074} 107 | {1A21A62F-0A90-4F94-88AA-341C730F54A7} = {A7B96D7E-CCC5-42B8-964F-D87FE42B0074} 108 | {8BB096F4-1DB0-4038-BA69-A4F75406D336} = {AC3CFB83-BBF1-4AFD-ADEE-87DCA241A885} 109 | {A8F28521-413D-4E59-82AD-24C6D2B1DA4B} = {DB58D260-0DDF-45D3-9A65-9D0464733819} 110 | {CB1BFAB0-7133-44B2-83B3-1E0C3637E6CE} = {AC3CFB83-BBF1-4AFD-ADEE-87DCA241A885} 111 | {1997D367-7DED-497B-9966-A16A8D269C21} = {DB58D260-0DDF-45D3-9A65-9D0464733819} 112 | {FB1D1F9B-50D9-403B-8F29-43B4A3F421D1} = {DB58D260-0DDF-45D3-9A65-9D0464733819} 113 | EndGlobalSection 114 | GlobalSection(ExtensibilityGlobals) = postSolution 115 | SolutionGuid = {62280A51-57F7-4AEB-B108-3A00B1574DEA} 116 | EndGlobalSection 117 | EndGlobal 118 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/Controllers/PeopleController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using Microsoft.AspNetCore.Mvc; 4 | using People.Service.Models; 5 | using Common; 6 | 7 | namespace People.Service.Controllers 8 | { 9 | [Route("api/[controller]")] 10 | [ApiController] 11 | public class PeopleController : ControllerBase 12 | { 13 | IPeopleProvider provider; 14 | 15 | public PeopleController(IPeopleProvider provider) 16 | { 17 | this.provider = provider; 18 | } 19 | 20 | // GET api/values 21 | [HttpGet] 22 | public IEnumerable Get() 23 | { 24 | return provider.GetPeople(); 25 | } 26 | 27 | // GET api/values/5 28 | [HttpGet("{id}")] 29 | public Person Get(int id) 30 | { 31 | return provider.GetPeople().FirstOrDefault(p => p.Id == id); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /LooseCoupling/People.Service/Models/IPeopleProvider.cs: -------------------------------------------------------------------------------- 1 | using Common; 2 | using System.Collections.Generic; 3 | 4 | namespace People.Service.Models 5 | { 6 | public interface IPeopleProvider 7 | { 8 | List GetPeople(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/Models/StaticPeopleProvider.cs: -------------------------------------------------------------------------------- 1 | using Common; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace People.Service.Models 6 | { 7 | public class StaticPeopleProvider : IPeopleProvider 8 | { 9 | public List GetPeople() 10 | { 11 | var p = new List() 12 | { 13 | new Person() { Id=1, GivenName="John", FamilyName="Koenig", 14 | StartDate = new DateTime(1975, 10, 17), Rating=6 }, 15 | new Person() { Id=2, GivenName="Dylan", FamilyName="Hunt", 16 | StartDate = new DateTime(2000, 10, 2), Rating=8 }, 17 | new Person() { Id=3, GivenName="Leela", FamilyName="Turanga", 18 | StartDate = new DateTime(1999, 3, 28), Rating=8, 19 | FormatString = "{1} {0}" }, 20 | new Person() { Id=4, GivenName="John", FamilyName="Crichton", 21 | StartDate = new DateTime(1999, 3, 19), Rating=7 }, 22 | new Person() { Id=5, GivenName="Dave", FamilyName="Lister", 23 | StartDate = new DateTime(1988, 2, 15), Rating=9 }, 24 | new Person() { Id=6, GivenName="Laura", FamilyName="Roslin", 25 | StartDate = new DateTime(2003, 12, 8), Rating=6}, 26 | new Person() { Id=7, GivenName="John", FamilyName="Sheridan", 27 | StartDate = new DateTime(1994, 1, 26), Rating=6 }, 28 | new Person() { Id=8, GivenName="Dante", FamilyName="Montana", 29 | StartDate = new DateTime(2000, 11, 1), Rating=5 }, 30 | new Person() { Id=9, GivenName="Isaac", FamilyName="Gampu", 31 | StartDate = new DateTime(1977, 9, 10), Rating=4 }, 32 | }; 33 | return p; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/People.Service.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.2 5 | InProcess 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore; 2 | using Microsoft.AspNetCore.Hosting; 3 | 4 | namespace People.Service 5 | { 6 | public class Program 7 | { 8 | public static void Main(string[] args) 9 | { 10 | CreateWebHostBuilder(args).Build().Run(); 11 | } 12 | 13 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) => 14 | WebHost.CreateDefaultBuilder(args) 15 | .UseStartup() 16 | .UseUrls("http://localhost:9874"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:32101", 8 | "sslPort": 44340 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "api/values", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "People.Service": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "api/values", 24 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /LooseCoupling/People.Service/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.AspNetCore.Mvc; 4 | using Microsoft.Extensions.Configuration; 5 | using Microsoft.Extensions.DependencyInjection; 6 | using People.Service.Models; 7 | 8 | namespace People.Service 9 | { 10 | public class Startup 11 | { 12 | public Startup(IConfiguration configuration) 13 | { 14 | Configuration = configuration; 15 | } 16 | 17 | public IConfiguration Configuration { get; } 18 | 19 | // This method gets called by the runtime. Use this method to add services to the container. 20 | public void ConfigureServices(IServiceCollection services) 21 | { 22 | services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); 23 | services.AddSingleton(); 24 | } 25 | 26 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 27 | public void Configure(IApplicationBuilder app, IHostingEnvironment env) 28 | { 29 | if (env.IsDevelopment()) 30 | { 31 | app.UseDeveloperExceptionPage(); 32 | } 33 | app.UseMvc(); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /LooseCoupling/People.Service/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /LooseCoupling/PeopleViewer.Autofac.LateBinding/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LooseCoupling/PeopleViewer.Autofac.LateBinding/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using Autofac; 2 | using Autofac.Configuration; 3 | using Microsoft.Extensions.Configuration; 4 | using PeopleViewer.Presentation; 5 | using System.Windows; 6 | 7 | namespace PeopleViewer.Autofac.LateBinding 8 | { 9 | public partial class App : Application 10 | { 11 | IContainer Container; 12 | 13 | protected override void OnStartup(StartupEventArgs e) 14 | { 15 | base.OnStartup(e); 16 | ConfigureContainer(); 17 | ComposeObjects(); 18 | Application.Current.MainWindow.Title = "With Dependency Injection - Autofac Late Binding"; 19 | Application.Current.MainWindow.Show(); 20 | } 21 | 22 | private void ConfigureContainer() 23 | { 24 | var config = new ConfigurationBuilder(); 25 | config.AddJsonFile("autofac.json"); 26 | 27 | var module = new ConfigurationModule(config.Build()); 28 | var builder = new ContainerBuilder(); 29 | builder.RegisterModule(module); 30 | 31 | builder.RegisterType().InstancePerDependency(); 32 | builder.RegisterType().InstancePerDependency(); 33 | 34 | Container = builder.Build(); 35 | } 36 | 37 | private void ComposeObjects() 38 | { 39 | Application.Current.MainWindow = Container.Resolve(); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /LooseCoupling/PeopleViewer.Autofac.LateBinding/Converters.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Windows.Data; 4 | using System.Windows.Media; 5 | 6 | namespace PeopleViewer.Autofac.LateBinding 7 | { 8 | public class DecadeConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 11 | { 12 | int year = ((DateTime)value).Year; 13 | return string.Format("{0}0s", year.ToString().Substring(0, 3)); 14 | } 15 | 16 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 17 | { 18 | throw new NotImplementedException(); 19 | } 20 | } 21 | 22 | public class RatingConverter : IValueConverter 23 | { 24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 25 | { 26 | int rating = (int)value; 27 | return string.Format("{0}/10 Stars", rating.ToString()); 28 | } 29 | 30 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 31 | { 32 | throw new NotImplementedException(); 33 | } 34 | } 35 | 36 | public class RatingStarConverter : IValueConverter 37 | { 38 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 39 | { 40 | int rating = (int)value; 41 | string output = string.Empty; 42 | return output.PadLeft(rating, '*'); 43 | } 44 | 45 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 46 | { 47 | string input = (string)value; 48 | //int rating = 0; 49 | 50 | //foreach (var ch in input) 51 | // if (ch == '*') 52 | // rating++; 53 | 54 | //return rating; 55 | 56 | return input.Count(c => c == '*'); 57 | } 58 | } 59 | 60 | public class DecadeBrushConverter : IValueConverter 61 | { 62 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 63 | { 64 | int decade = (((DateTime)value).Year / 10) * 10; 65 | 66 | switch (decade) 67 | { 68 | case 1970: 69 | return new SolidColorBrush(Colors.Maroon); 70 | case 1980: 71 | return new SolidColorBrush(Colors.DarkGreen); 72 | case 1990: 73 | return new SolidColorBrush(Colors.DarkSlateBlue); 74 | case 2000: 75 | return new SolidColorBrush(Colors.CadetBlue); 76 | default: 77 | return new SolidColorBrush(Colors.DarkSlateGray); 78 | } 79 | } 80 | 81 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 82 | { 83 | throw new NotImplementedException(); 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /LooseCoupling/PeopleViewer.Autofac.LateBinding/MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |