├── DetailedExamples ├── AppDomainEvents │ ├── _ReSharper.AppDomainEvents │ │ ├── Resources │ │ │ ├── .crc │ │ │ └── .version │ │ ├── TagPrefixes │ │ │ ├── .crc │ │ │ └── .version │ │ ├── TodoCache │ │ │ ├── 6 │ │ │ │ └── 7611ac88.dat │ │ │ ├── .version │ │ │ └── .crc │ │ ├── WordIndex │ │ │ ├── 5 │ │ │ │ └── 2ba7fed3.dat │ │ │ ├── .version │ │ │ └── .crc │ │ ├── NamedArguments │ │ │ ├── 0 │ │ │ │ └── 10dcd5ae.dat │ │ │ ├── .version │ │ │ └── .crc │ │ ├── BuildScriptCache │ │ │ ├── 9 │ │ │ │ └── 4439f41f.dat │ │ │ ├── .version │ │ │ └── .crc │ │ ├── WebsiteFileReferences │ │ │ ├── .crc │ │ │ └── .version │ │ ├── ModuleIds.xml │ │ ├── ProjectModel │ │ │ └── ProjectModel.dat │ │ └── SymbolCache.bin │ ├── AppDomainEvents.suo │ ├── AppDomainEvents │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── FooLib.dll │ │ │ │ ├── FooLib.pdb │ │ │ │ ├── AppDomainEvents.exe │ │ │ │ ├── AppDomainEvents.pdb │ │ │ │ ├── AppDomainEvents.exe.mdb │ │ │ │ ├── AppDomainEvents.vshost.exe │ │ │ │ └── AppDomainEvents.vshost.exe.manifest │ │ └── obj │ │ │ └── x86 │ │ │ └── Debug │ │ │ ├── AppDomainEvents.exe │ │ │ ├── AppDomainEvents.pdb │ │ │ ├── AppDomainEvents.exe.mdb │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── .NETFramework,Version=v4.0,Profile=Client.AssemblyAttribute.cs │ │ │ └── AppDomainEvents.csproj.FileListAbsolute.txt │ ├── AppDomainEvents.userprefs │ └── AppDomainEvents.5.1.ReSharper.user ├── NUnitCheatSheet │ ├── NUnitCheatSheet │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── MyFile.txt │ │ │ │ ├── MyFile2.txt │ │ │ │ ├── MyFile2.txt~ │ │ │ │ ├── NUnitCheatSheet.dll │ │ │ │ └── NUnitCheatSheet.dll.mdb │ │ ├── test-results │ │ │ └── NUnitCheatSheet.csproj.test-cache │ │ ├── obj │ │ │ └── Debug │ │ │ │ ├── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ │ │ └── NUnitCheatSheet.csproj.FilesWrittenAbsolute.txt │ │ └── Misc.cs │ └── NUnitCheatSheet.userprefs ├── TheConsole │ ├── TheConsole │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── TheConsole.exe │ │ │ │ └── TheConsole.exe.mdb │ │ ├── obj │ │ │ └── x86 │ │ │ │ └── Debug │ │ │ │ ├── TheConsole.exe │ │ │ │ ├── TheConsole.exe.mdb │ │ │ │ └── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ └── HelloFriend.cs │ └── TheConsole.userprefs └── DotNetExamples │ ├── DotNetExamples │ ├── bin │ │ ├── Debug │ │ │ ├── Ninject.dll │ │ │ ├── testXYZ.cer │ │ │ ├── TheBasics.dll │ │ │ ├── mysql.data.dll │ │ │ ├── DotNetExamples.dll │ │ │ ├── TheBasics.dll.mdb │ │ │ ├── DotNetExamples.dll.mdb │ │ │ ├── mysql.data (Case Conflict).dll │ │ │ ├── mysql.data (Case Conflict (1)).dll │ │ │ ├── mysql.data (Case Conflict (2)).dll │ │ │ ├── mysql.data (Case Conflict (3)).dll │ │ │ ├── mysql.data (Case Conflict (4)).dll │ │ │ ├── mysql.data (Case Conflict (5)).dll │ │ │ ├── mysql.data (Case Conflict (6)).dll │ │ │ ├── mysql.data (Case Conflict (7)).dll │ │ │ ├── mysql.data (Case Conflict (8)).dll │ │ │ ├── mysql.data (Case Conflict (9)).dll │ │ │ ├── mysql.data (Case Conflict (10)).dll │ │ │ ├── mysql.data (Case Conflict (11)).dll │ │ │ ├── mysql.data (Case Conflict (12)).dll │ │ │ ├── mysql.data (Case Conflict (13)).dll │ │ │ ├── mysql.data (Case Conflict (14)).dll │ │ │ ├── mysql.data (Case Conflict (15)).dll │ │ │ └── App.Config.xml │ │ └── Release │ │ │ ├── Ninject.dll │ │ │ ├── MySql.Data.dll │ │ │ ├── DotNetExamples.dll │ │ │ ├── App.Config │ │ │ ├── DotNetExamples.dll.config │ │ │ └── App.Config.xml │ ├── obj │ │ ├── Debug │ │ │ ├── TheBasics.dll │ │ │ ├── DotNetExamples.dll │ │ │ ├── TheBasics.dll.mdb │ │ │ ├── DotNetExamples.dll.mdb │ │ │ ├── TheBasics.csproj.FilesWrittenAbsolute.txt │ │ │ └── .NETFramework,Version=v4.5.AssemblyAttribute.cs │ │ └── Release │ │ │ ├── DotNetExamples.dll │ │ │ └── .NETFramework,Version=v4.5.AssemblyAttribute.cs │ ├── ADO │ │ ├── Extras.cs │ │ ├── Connections │ │ │ └── ConfigurationManagerExample.cs │ │ └── DisconnectedLayer │ │ │ ├── RowVersionExampleTests.cs │ │ │ └── DataViewExample.cs │ ├── TestingMoqingDebugging │ │ ├── NInject │ │ │ ├── DataModel │ │ │ │ ├── TestClasses │ │ │ │ │ ├── KnownC.cs │ │ │ │ │ ├── KnownD.cs │ │ │ │ │ ├── KnownE.cs │ │ │ │ │ ├── UnknownB.cs │ │ │ │ │ ├── UnknownA.cs │ │ │ │ │ ├── InjectWhenClassHas.cs │ │ │ │ │ ├── CalledBy.cs │ │ │ │ │ ├── InjectWithIsSomething.cs │ │ │ │ │ ├── InjectWithIsNotSomething.cs │ │ │ │ │ ├── ConstructorWithArguments.cs │ │ │ │ │ ├── InjectWhenMemberAndTargetHas.cs │ │ │ │ │ └── NestedResolve.cs │ │ │ │ ├── Interfaces │ │ │ │ │ └── IClass.cs │ │ │ │ ├── ExampleClasses │ │ │ │ │ ├── ContextualBinding │ │ │ │ │ │ ├── IChild.cs │ │ │ │ │ │ ├── IInject.cs │ │ │ │ │ │ ├── IParent.cs │ │ │ │ │ │ ├── InjectD.cs │ │ │ │ │ │ ├── GrandParent.cs │ │ │ │ │ │ ├── InjectA.cs │ │ │ │ │ │ ├── InjectB.cs │ │ │ │ │ │ ├── ParentB.cs │ │ │ │ │ │ ├── ParentA.cs │ │ │ │ │ │ ├── ChildA.cs │ │ │ │ │ │ └── ChildB.cs │ │ │ │ │ ├── SelfBindExample.cs │ │ │ │ │ ├── AuoSelfBindExample.cs │ │ │ │ │ ├── RuntimeConstructorArgumentExample.cs │ │ │ │ │ └── PropertyAndMethodInjectionExample.cs │ │ │ │ └── Attributes.cs │ │ │ ├── KernelModules │ │ │ │ ├── SelfBindModule.cs │ │ │ │ ├── ScopeModule.cs │ │ │ │ ├── NamedBindingModule.cs │ │ │ │ ├── MultipleConstructorModule.cs │ │ │ │ ├── DerrivedAtrributeModule.cs │ │ │ │ ├── WithMetadataModule.cs │ │ │ │ └── ContextualBindingModule.cs │ │ │ └── Attributes │ │ │ │ ├── WhenClassHas.cs │ │ │ │ ├── WhenMemberHas.cs │ │ │ │ ├── WhenTargetHas.cs │ │ │ │ ├── IsSomething.cs │ │ │ │ └── IsNotSomething.cs │ │ └── Debugging │ │ │ ├── DebuggerDisplayAttributeExample.cs │ │ │ ├── WarningAndErrorDirectives.cs │ │ │ ├── PragmaExample.cs │ │ │ ├── ConditionalAttributeExample.cs │ │ │ ├── DebugExample.cs │ │ │ ├── LineDirective.cs │ │ │ ├── CompilerDirectivesExample.cs │ │ │ ├── StopWatchExample.cs │ │ │ ├── CustomCompilerDirectivesExample.cs │ │ │ └── PerformanceCounterMemoryExample.cs │ ├── Advanced │ │ ├── Generics │ │ │ ├── SampleEnum.cs │ │ │ ├── Serialisation │ │ │ │ └── SampleClass.cs │ │ │ └── Examples.cs │ │ ├── AdvancedFeatures │ │ │ ├── NullableExample.cs │ │ │ ├── StringExtensions.cs │ │ │ └── CheckedUncheckedAdder.cs │ │ ├── Streams │ │ │ ├── TheData.cs │ │ │ └── HTTPWebRequestExample.cs │ │ ├── Attributes │ │ │ ├── ImplodeAttribute.cs │ │ │ └── AnnotatedClass.cs │ │ └── Serialization │ │ │ ├── SerializeEventsExample.cs │ │ │ ├── JavaScriptSerializerExample.cs │ │ │ ├── ExampleISerializable.cs │ │ │ ├── MyModel.cs │ │ │ ├── MyModelDC.cs │ │ │ ├── SoapFormatterExample.cs │ │ │ └── BinaryFormatterExample.cs │ ├── AssembliesReflectionSecurity │ │ ├── Security │ │ │ ├── testXYZ.cer │ │ │ ├── SHA256Example.cs │ │ │ ├── SHA1ManagedExample.cs │ │ │ ├── MD5Example.cs │ │ │ └── HashingExample.cs │ │ ├── Reflection │ │ │ ├── AClass.cs │ │ │ └── DynamicLoadingExample.cs │ │ └── Assemblies │ │ │ └── AppSettingsReaderExample.cs │ ├── MultiThreading │ │ ├── Spawning │ │ │ ├── TimerExample.cs │ │ │ ├── ThreadPoolExample.cs │ │ │ ├── ThreadStart.cs │ │ │ └── ParameterizedThreadStart.cs │ │ └── ThreadSynchronization │ │ │ ├── ThreadJoinExample.cs │ │ │ └── LockRegion.cs │ ├── Basics │ │ ├── DisposableClass.cs │ │ └── IConvertibleExample.cs │ └── App.Config.xml │ ├── DotNetExamplesTests │ ├── bin │ │ ├── Debug │ │ │ ├── Ninject.dll │ │ │ ├── MySql.Data.dll │ │ │ ├── TheBasics.dll │ │ │ ├── Rhino.Mocks.dll │ │ │ ├── DotNetExamples.dll │ │ │ ├── TheBasics.dll.mdb │ │ │ ├── DotNetExamples.dll.mdb │ │ │ ├── DotNetExamplesTests.dll │ │ │ ├── DotNetExamplesTests.dll.mdb │ │ │ └── App.Config.xml │ │ └── Release │ │ │ ├── Ninject.dll │ │ │ ├── Rhino.Mocks.dll │ │ │ ├── DotNetExamples.dll │ │ │ ├── TheBasicsTests.dll │ │ │ ├── DotNetExamplesTests.dll │ │ │ ├── App.Config │ │ │ └── App.Config.xml │ ├── EmptyClass.cs │ ├── obj │ │ ├── Release │ │ │ ├── TheBasicsTests.dll │ │ │ ├── DotNetExamplesTests.dll │ │ │ └── .NETFramework,Version=v4.5.AssemblyAttribute.cs │ │ └── Debug │ │ │ ├── DotNetExamplesTests.dll │ │ │ ├── DotNetExamplesTests.dll.mdb │ │ │ └── .NETFramework,Version=v4.5.AssemblyAttribute.cs │ ├── test-results │ │ └── TheBasicsTests.csproj.test-cache │ ├── Advanced │ │ ├── Linq │ │ │ ├── SampleData │ │ │ │ ├── Gender.cs │ │ │ │ └── GenderDescriptor.cs │ │ │ └── Utils │ │ │ │ └── PersonSexComparer.cs │ │ ├── AdvancedFeatures │ │ │ ├── StringExtensionsTests.cs │ │ │ ├── NullableExampleTest.cs │ │ │ └── LazyLoadExampleTest.cs │ │ ├── Streams │ │ │ ├── PathExampleTests.cs │ │ │ ├── HTTPWebRequestExampleTest.cs │ │ │ ├── FileExampleTests.cs │ │ │ ├── FileStreamExampleTests.cs │ │ │ ├── GZipStreamExampleTests.cs │ │ │ ├── BinaryReaderWriterTests.cs │ │ │ ├── StringReaderWriterExampleTests.cs │ │ │ ├── DriveInfoExampleTests.cs │ │ │ └── FileSystemWatcherExampleTests.cs │ │ ├── XML │ │ │ ├── HydrationExampleTests.cs │ │ │ └── VAlidateXMLExample.cs │ │ ├── TraceSourceExampleTests.cs │ │ ├── Attributes │ │ │ └── AttributesExampleTests.cs │ │ ├── Collections │ │ │ ├── QueueExampleTests.cs │ │ │ └── StackExampleTests.cs │ │ ├── Serialization │ │ │ ├── BinaryFormatterExampleTests.cs │ │ │ ├── SoapFormatterExampleTests.cs │ │ │ ├── XMLSerializerExampleTests.cs │ │ │ ├── DataContractJsonSerializerExampleTests.cs │ │ │ ├── ExampleISerializableTests.cs │ │ │ ├── DataContractSerializerExampleTests.cs │ │ │ └── SerializeEventsExampleTests.cs │ │ └── Generics │ │ │ └── SerialisationTests.cs │ ├── Scrap.cs │ ├── TestingMoqingDebugging │ │ ├── RhinoMocks │ │ │ ├── Model │ │ │ │ ├── AnotherModel.cs │ │ │ │ ├── Foo.cs │ │ │ │ ├── IModelRepository.cs │ │ │ │ ├── ISimpleModel.cs │ │ │ │ └── ModelRepository.cs │ │ │ └── Stubs │ │ │ │ ├── ASimpleStub.cs │ │ │ │ ├── ArgumentConstraints │ │ │ │ ├── IgnoreArguments.cs │ │ │ │ └── MatchesConstraints.cs │ │ │ │ └── LiteralExample.cs │ │ ├── Debugging │ │ │ ├── StopwatchExampleTests.cs │ │ │ ├── DebugExampleTests.cs │ │ │ ├── ConditionalAttributeExampleTests.cs │ │ │ ├── CustomCompilerDirectivesExampleTests.cs │ │ │ ├── DebuggerDisplayAttributeExampleTests.cs │ │ │ ├── PerformanceCounterMemoryExampleTests.cs │ │ │ ├── CompilerDirectivesExampleTests.cs │ │ │ └── PerformanceEncounterCustomExampleTests.cs │ │ └── NInject │ │ │ ├── BindToMethodTest.cs │ │ │ ├── BindToConstructorTest.cs │ │ │ ├── AutoSelfBindTest.cs │ │ │ ├── ContextualBindingTest.cs │ │ │ └── BindToConstantTest.cs │ ├── DotNetExamplesTests.userprefs │ ├── ADO │ │ ├── DisconnectedLayer │ │ │ ├── RowVersionExampleTest.cs │ │ │ ├── DataAdapterExampleTests.cs │ │ │ ├── DataTableReaderExampleTests.cs │ │ │ ├── SQLCommandBuilderExampleTests.cs │ │ │ ├── FillSchemaExampleTests.cs │ │ │ ├── SerializationExampleTests.cs │ │ │ ├── FillDataSetExampleTests.cs │ │ │ ├── CallingAStoredProcesureExampleTests.cs │ │ │ ├── TransactionsExampleTests.cs │ │ │ └── DataViewExampleTests.cs │ │ ├── ConnectedLayer │ │ │ ├── DataSetExampleTests.cs │ │ │ ├── DataReaderExampleTests.cs │ │ │ ├── DataReaderMultiSelectExampleTests.cs │ │ │ ├── TextCommandTypeExampleTests.cs │ │ │ ├── CommandParametersExampleTests.cs │ │ │ └── ExecuteNonQueryExampleTests.cs │ │ └── Connections │ │ │ ├── ConnectionStringBuilderExampleTests.cs │ │ │ ├── DbProviderFactoriesExampleTests.cs │ │ │ └── ConfigurationManagerExampleADOTests.cs │ ├── MultiThreading │ │ ├── ThreadSynchronization │ │ │ ├── LockRegionTests.cs │ │ │ ├── ThreadJoinExampleTests.cs │ │ │ ├── AutoResetEventExampleTests.cs │ │ │ ├── InterlockedExampleTests.cs │ │ │ ├── SynchronizationAttributeExampleTests.cs │ │ │ ├── ThreadStaticLocalExampleTest.cs │ │ │ └── MonitorExampleTests.cs │ │ ├── ConcurrentCollections │ │ │ ├── ConcurrentBagTests.cs │ │ │ ├── ConcurrentQueueExampleTests.cs │ │ │ ├── ConcurrentStackExampleTests.cs │ │ │ └── BlockingCollectionExampleTests.cs │ │ ├── Spawning │ │ │ ├── TimerExampleTests.cs │ │ │ ├── ThreadPoolExampleTests.cs │ │ │ ├── ThreadStartExampleTests.cs │ │ │ ├── ParameterizedThreadStartCancelExampleTests.cs │ │ │ ├── ThreadPoolCancelExampleTests.cs │ │ │ ├── ParameterizedThreadStartExampleTests.cs │ │ │ ├── AsyncExampleTests.cs │ │ │ └── GetStringAsyncExampleTest.cs │ │ └── ProcessAppDomains │ │ │ ├── ProcessExampleTests.cs │ │ │ ├── ContextBoundObjectExampleTests.cs │ │ │ └── SimpleAppDomainExampleTests.cs │ └── AssembliesReflectionSecurity │ │ ├── Security │ │ ├── X509ExampleTests.cs │ │ ├── ToHashTest.cs │ │ ├── AESEncrptionExampleTests.cs │ │ ├── RSAEncryptionExampleTests.cs │ │ ├── SHA256ExampleTests.cs │ │ └── SHA1ManagedExampleTests.cs │ │ ├── DynamicRuntime │ │ └── DynamicTypeExampleTests.cs │ │ └── Assemblies │ │ ├── ConfigurationManagerExampleTests.cs │ │ └── AppSettingsReaderExampleTests.cs │ └── DotNetExamples.userprefs ├── SimpleIntroductions ├── Day8ADOExample │ └── ADOExample │ │ ├── ADO.Net&MySQL │ │ ├── DAL │ │ │ ├── Schema │ │ │ │ ├── ISchema.cs │ │ │ │ └── SampleTableSchema.cs │ │ │ ├── Models │ │ │ │ ├── IModel.cs │ │ │ │ └── SampleTable.cs │ │ │ ├── ADOProviders │ │ │ │ ├── IProviderFactory.cs │ │ │ │ ├── IADODataProviderFactory.cs │ │ │ │ ├── ProviderFactory.cs │ │ │ │ └── MySQLADOProviderFactory.cs │ │ │ └── SQL │ │ │ │ └── IModelSQLBuilderHelper.cs │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── Ninject.dll │ │ │ │ ├── MySql.Data.dll │ │ │ │ ├── Ninject.dll.mdb │ │ │ │ ├── ADO.Net&MySQL.dll │ │ │ │ ├── ADO.Net&MySQL.dll.mdb │ │ │ │ └── MySql.Data.dll (Case Conflict 1) │ │ └── Utils │ │ │ └── CSVHelper.cs │ │ ├── SqliteDB │ │ └── SampleSqlite.db │ │ └── ADO.Net&MySQLTests │ │ ├── bin │ │ └── Debug │ │ │ ├── Ninject.dll │ │ │ ├── MySql.Data.dll │ │ │ ├── Ninject.dll.mdb │ │ │ ├── ADO.Net&MySQL.dll │ │ │ ├── ADO.Net&MySQL.dll.mdb │ │ │ ├── ADO.Net&MySQLTests.dll │ │ │ ├── ADO.Net&MySQLTests.dll.mdb │ │ │ └── MySql.Data.dll (Case Conflict 1) │ │ └── test-results │ │ └── ADODotNetAndMySQLTests.csproj.test-cache ├── Day4RhinoMocksExample │ ├── RhinoMocksExampleTests │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── Ninject.dll │ │ │ │ ├── Ninject.dll.mdb │ │ │ │ ├── Rhino.Mocks.dll │ │ │ │ ├── RhinoMocksExample.dll │ │ │ │ ├── RhinoMocksExample.dll.mdb │ │ │ │ ├── RhinoMocksExampleTests.dll │ │ │ │ └── RhinoMocksExampleTests.dll.mdb │ │ ├── obj │ │ │ └── Debug │ │ │ │ ├── RhinoMocksExampleTests.dll │ │ │ │ ├── RhinoMocksExampleTests.dll.mdb │ │ │ │ └── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ ├── test-results │ │ │ └── RhinoMocksExampleTests.csproj.test-cache │ │ └── RhinoMocksExampleTests.userprefs │ └── RhinoMocksExample │ │ └── RhinoMocksExample │ │ ├── Model.cs │ │ ├── bin │ │ └── Debug │ │ │ ├── RhinoMocksExample.dll │ │ │ └── RhinoMocksExample.dll.mdb │ │ ├── obj │ │ └── Debug │ │ │ ├── RhinoMocksExample.dll │ │ │ ├── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ │ └── RhinoMocksExample.dll.mdb │ │ ├── IModelRepository.cs │ │ └── ModelRepository.cs ├── Day2NUnitExample │ ├── MathsLibrary │ │ ├── MathsLibrary │ │ │ ├── bin │ │ │ │ └── Debug │ │ │ │ │ ├── MathsLibrary.dll │ │ │ │ │ └── MathsLibrary.dll.mdb │ │ │ └── obj │ │ │ │ └── Debug │ │ │ │ ├── MathsLibrary.dll │ │ │ │ ├── MathsLibrary.dll.mdb │ │ │ │ └── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ └── test-results │ │ │ └── {FB64ACE2-B21D-40FE-AE2F-756F444DF384}-default-2013-02-24.xml │ └── MathsLibrary.Tests │ │ ├── MathsLibrary.Tests │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── MathsLibrary.dll │ │ │ │ ├── MathsLibrary.dll.mdb │ │ │ │ ├── MathsLibrary.Tests.dll │ │ │ │ └── MathsLibrary.Tests.dll.mdb │ │ ├── obj │ │ │ └── Debug │ │ │ │ ├── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ │ │ └── MathsLibrary.Tests.csproj.FilesWrittenAbsolute.txt │ │ └── test-results │ │ │ └── MathsLibrary.Tests.csproj.test-cache │ │ └── MathsLibrary.Tests.userprefs └── Day3NinjectExample │ └── NinjectExample │ ├── NinjectExample │ ├── bin │ │ └── Debug │ │ │ ├── Ninject.dll │ │ │ ├── Ninject.dll.mdb │ │ │ ├── NinjectExample.dll │ │ │ └── NinjectExample.dll.mdb │ ├── obj │ │ └── Debug │ │ │ ├── NinjectExample.dll │ │ │ ├── NinjectExample.dll.mdb │ │ │ └── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ ├── Interfaces │ │ ├── ISimpleClass.cs │ │ ├── IClassWithConstructorParameters.cs │ │ └── IClassWithDependancy.cs │ └── Models │ │ ├── SimpleClass.cs │ │ └── SimpleClassAlso.cs │ ├── NinjectExampleTests │ ├── bin │ │ └── Debug │ │ │ ├── Ninject.dll │ │ │ ├── Ninject.dll.mdb │ │ │ ├── NinjectExample.dll │ │ │ ├── NinjectExample.dll.mdb │ │ │ ├── NinjectExampleTests.dll │ │ │ └── NinjectExampleTests.dll.mdb │ ├── obj │ │ └── Debug │ │ │ ├── NinjectExampleTests.dll │ │ │ ├── .NETFramework,Version=v4.0.AssemblyAttribute.cs │ │ │ └── NinjectExampleTests.dll.mdb │ └── test-results │ │ └── NinjectExampleTests.csproj.test-cache │ └── test-results │ └── {C01004A0-14BA-4D08-8330-323851FD161D}-default-2013-02-24.xml └── ThirdParty ├── Rhino.Mocks-3.6-Build-21 ├── Rhino.Mocks.dll └── acknowledgements.txt ├── Ninject-3.0.1.10-release-mono-4.0 ├── Ninject.dll ├── Ninject.dll.mdb └── extensions │ ├── CommonServiceLocator.NinjectAdapter.dll │ └── CommonServiceLocator.NinjectAdapter.dll.mdb └── mysql-connector-net-6.8.3-noinstall ├── v2.0 ├── mysql.data.dll ├── mysql.web.dll ├── mysql.data.cf.dll └── mysql.data.entity.dll ├── v4.0 ├── mysql.data.dll ├── mysql.web.dll ├── mysql.data.entity.dll └── mysql.data.entity.EF6.dll ├── v4.5 ├── MySqlData.dll ├── mysql.data.dll ├── mysql.web.dll ├── mysql.data.entity.EF5.dll └── mysql.data.entity.EF6.dll ├── RT └── MySql.Data.RT.dll ├── Documentation └── ConnectorNET.chm └── Release Notes.txt /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/Resources/.crc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/Resources/.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TagPrefixes/.crc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TodoCache/.version: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WordIndex/.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/MyFile.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/Schema/ISchema.cs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/NamedArguments/.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TagPrefixes/.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/MyFile2.txt: -------------------------------------------------------------------------------- 1 | Hello Again 2 | -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/MyFile2.txt~: -------------------------------------------------------------------------------- 1 | Hello Again 2 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/BuildScriptCache/.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WebsiteFileReferences/.crc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WebsiteFileReferences/.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /ThirdParty/Rhino.Mocks-3.6-Build-21/Rhino.Mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/Rhino.Mocks-3.6-Build-21/Rhino.Mocks.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents.suo -------------------------------------------------------------------------------- /ThirdParty/Ninject-3.0.1.10-release-mono-4.0/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/Ninject-3.0.1.10-release-mono-4.0/Ninject.dll -------------------------------------------------------------------------------- /ThirdParty/Ninject-3.0.1.10-release-mono-4.0/Ninject.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/Ninject-3.0.1.10-release-mono-4.0/Ninject.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole/bin/Debug/TheConsole.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/TheConsole/TheConsole/bin/Debug/TheConsole.exe -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/ModuleIds.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.data.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.web.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.data.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.web.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/MySqlData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/MySqlData.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.data.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.web.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/ProjectModel/ProjectModel.dat: -------------------------------------------------------------------------------- 1 | HC251FD0A-7FB6-425D-A021-4854E04878A2AppDomainEvents -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/testXYZ.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/testXYZ.cer -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole/bin/Debug/TheConsole.exe.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/TheConsole/TheConsole/bin/Debug/TheConsole.exe.mdb -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole/obj/x86/Debug/TheConsole.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/TheConsole/TheConsole/obj/x86/Debug/TheConsole.exe -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/RT/MySql.Data.RT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/RT/MySql.Data.RT.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/FooLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/FooLib.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/FooLib.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/FooLib.pdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/TheBasics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/TheBasics.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/Ninject.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/TheBasics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/TheBasics.dll -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole/obj/x86/Debug/TheConsole.exe.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/TheConsole/TheConsole/obj/x86/Debug/TheConsole.exe.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/SqliteDB/SampleSqlite.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/SqliteDB/SampleSqlite.db -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.data.cf.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.data.cf.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/MySql.Data.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.data.entity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v2.0/mysql.data.entity.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.data.entity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.data.entity.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/SymbolCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/SymbolCache.bin -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TodoCache/.crc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TodoCache/.crc -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WordIndex/.crc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WordIndex/.crc -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/ADO/Extras.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TheBasics 4 | { 5 | public class Extras 6 | { 7 | public Extras () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/DotNetExamples.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/DotNetExamples.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/TheBasics.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/TheBasics.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/DotNetExamples.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/DotNetExamples.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/TheBasics.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/TheBasics.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/MySql.Data.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/TheBasics.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/TheBasics.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/Ninject.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.exe -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.pdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/DotNetExamples.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/DotNetExamples.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Release/DotNetExamples.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/obj/Release/DotNetExamples.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/Rhino.Mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/Rhino.Mocks.dll -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/NUnitCheatSheet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/NUnitCheatSheet.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/Documentation/ConnectorNET.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/Documentation/ConnectorNET.chm -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.data.entity.EF6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.0/mysql.data.entity.EF6.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.data.entity.EF5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.data.entity.EF5.dll -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.data.entity.EF6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/mysql-connector-net-6.8.3-noinstall/v4.5/mysql.data.entity.EF6.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/BuildScriptCache/.crc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/BuildScriptCache/.crc -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/NamedArguments/.crc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/NamedArguments/.crc -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/KnownC.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class KnownC : IClass {} 6 | } 7 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/KnownD.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class KnownD : IClass {} 6 | } 7 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/KnownE.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class KnownE : IClass {} 6 | } 7 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/DotNetExamples.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/DotNetExamples.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/DotNetExamples.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/DotNetExamples.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamples.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamples.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/TheBasics.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/TheBasics.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/Rhino.Mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/Rhino.Mocks.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.exe.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.exe.mdb -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.exe -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.pdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/EmptyClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TheBasicsTests 4 | { 5 | public class EmptyClass 6 | { 7 | public EmptyClass () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/DotNetExamples.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/DotNetExamples.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/TheBasicsTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/TheBasicsTests.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Release/TheBasicsTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Release/TheBasicsTests.dll -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/NUnitCheatSheet.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/bin/Debug/NUnitCheatSheet.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.vshost.exe -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.exe.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.exe.mdb -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TodoCache/6/7611ac88.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/TodoCache/6/7611ac88.dat -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WordIndex/5/2ba7fed3.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/WordIndex/5/2ba7fed3.dat -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Generics/SampleEnum.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace Advanced.Generics 3 | { 4 | public enum SampleEnum 5 | { 6 | Unknown, 7 | Foo, 8 | Bar, 9 | FooBar 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/UnknownB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class UnknownB : IClass {} 6 | 7 | } 8 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamples.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamples.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamplesTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamplesTests.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Debug/DotNetExamplesTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Debug/DotNetExamplesTests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/MySql.Data.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/Ninject.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/Ninject.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/UnknownA.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | 6 | public class UnknownA : IClass {} 7 | 8 | } 9 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/DotNetExamplesTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/DotNetExamplesTests.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Release/DotNetExamplesTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Release/DotNetExamplesTests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/ADO.Net&MySQL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/ADO.Net&MySQL.dll -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/BuildScriptCache/9/4439f41f.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/BuildScriptCache/9/4439f41f.dat -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/NamedArguments/0/10dcd5ae.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/_ReSharper.AppDomainEvents/NamedArguments/0/10dcd5ae.dat -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/Interfaces/IClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public interface IClass 6 | { 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (1)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (1)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (2)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (2)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (3)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (3)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (4)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (4)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (5)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (5)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (6)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (6)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (7)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (7)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (8)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (8)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (9)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (9)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/TheBasics.csproj.FilesWrittenAbsolute.txt: -------------------------------------------------------------------------------- 1 | /home/lukey/Dropbox/Development/SandBox/Playdough/ConciseC#Misc/TheBasics/TheBasics/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs 2 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamplesTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/DotNetExamplesTests.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Debug/DotNetExamplesTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Debug/DotNetExamplesTests.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/bin/Debug/MathsLibrary.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/bin/Debug/MathsLibrary.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/obj/Debug/MathsLibrary.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/obj/Debug/MathsLibrary.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/Ninject.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/Ninject.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/Rhino.Mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/Rhino.Mocks.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/ADO.Net&MySQL.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/ADO.Net&MySQL.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/MySql.Data.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/Ninject.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/Ninject.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (10)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (10)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (11)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (11)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (12)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (12)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (13)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (13)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (14)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (14)).dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (15)).dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/mysql.data (Case Conflict (15)).dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/bin/Debug/MathsLibrary.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/bin/Debug/MathsLibrary.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/obj/Debug/MathsLibrary.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/obj/Debug/MathsLibrary.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQL.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Security/testXYZ.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Security/testXYZ.cer -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/test-results/NUnitCheatSheet.csproj.test-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/test-results/NUnitCheatSheet.csproj.test-cache -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole/obj/x86/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/Ninject.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/Ninject.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/Ninject.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/Ninject.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExample.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExample.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQL.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQL.dll.mdb -------------------------------------------------------------------------------- /ThirdParty/Ninject-3.0.1.10-release-mono-4.0/extensions/CommonServiceLocator.NinjectAdapter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/Ninject-3.0.1.10-release-mono-4.0/extensions/CommonServiceLocator.NinjectAdapter.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Generics/Serialisation/SampleClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.Generics 4 | { 5 | public class SampleClass 6 | { 7 | public string Name { get; set; } 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/obj/Release/.NETFramework,Version=v4.5.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/test-results/TheBasicsTests.csproj.test-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/DotNetExamples/DotNetExamplesTests/test-results/TheBasicsTests.csproj.test-cache -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/NinjectExample.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/NinjectExample.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/obj/Debug/NinjectExample.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/obj/Debug/NinjectExample.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/Model.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace RhinoMocksExample 4 | { 5 | public struct Model 6 | { 7 | public int FieldA; 8 | public string FieldB; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQLTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQLTests.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/IChild.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public interface IChild 6 | { 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Linq/SampleData/Gender.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace Advanced.Linq.Tests 6 | { 7 | public enum Gender { Unknown, Male, Female } 8 | } 9 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/obj/Release/.NETFramework,Version=v4.5.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/NinjectExample.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/bin/Debug/NinjectExample.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/obj/Debug/NinjectExample.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/obj/Debug/NinjectExample.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/Ninject.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/Ninject.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExample.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExample.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExampleTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExampleTests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/obj/Debug/RhinoMocksExampleTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/obj/Debug/RhinoMocksExampleTests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/Models/IModel.cs: -------------------------------------------------------------------------------- 1 | //using System; 2 | // 3 | //namespace ADO.NetMySQL 4 | //{ 5 | // public interface IModel 6 | // { 7 | // public IModel () 8 | // { 9 | // } 10 | // } 11 | //} 12 | // 13 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQLTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/ADO.Net&MySQLTests.dll.mdb -------------------------------------------------------------------------------- /ThirdParty/Ninject-3.0.1.10-release-mono-4.0/extensions/CommonServiceLocator.NinjectAdapter.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/ThirdParty/Ninject-3.0.1.10-release-mono-4.0/extensions/CommonServiceLocator.NinjectAdapter.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/IInject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public interface IInject 6 | { 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/IParent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public interface IParent 6 | { 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExample.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExample.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/MySql.Data.dll (Case Conflict 1): -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/bin/Debug/MySql.Data.dll (Case Conflict 1) -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Reflection/AClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AssembliesReflectionSecurity.Reflection 4 | { 5 | public class AClass 6 | { 7 | public class NestedClass 8 | { 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary/MathsLibrary/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExample.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExample.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExampleTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/bin/Debug/RhinoMocksExampleTests.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/obj/Debug/RhinoMocksExampleTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/obj/Debug/RhinoMocksExampleTests.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/obj/Debug/NUnitCheatSheet.csproj.FilesWrittenAbsolute.txt: -------------------------------------------------------------------------------- 1 | /home/lukey/Dropbox/Development/SandBox/Git/DOT-NET-on-Linux/Day12NUnitCheatSheet/NUnitCheatSheet/NUnitCheatSheet/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs 2 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.Tests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExampleTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExampleTests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/obj/Debug/NinjectExampleTests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/obj/Debug/NinjectExampleTests.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/MySql.Data.dll (Case Conflict 1): -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/bin/Debug/MySql.Data.dll (Case Conflict 1) -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/Attributes.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class Attributes 6 | { 7 | public Attributes () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.Tests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.Tests.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExampleTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/bin/Debug/NinjectExampleTests.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/obj/Debug/NinjectExampleTests.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/obj/Debug/NinjectExampleTests.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/bin/Debug/RhinoMocksExample.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/bin/Debug/RhinoMocksExample.dll -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/obj/Debug/RhinoMocksExample.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/obj/Debug/RhinoMocksExample.dll -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Scrap.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TheBasicsTests 5 | { 6 | [TestFixture ()] 7 | public class Test 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/bin/Debug/RhinoMocksExample.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/bin/Debug/RhinoMocksExample.dll.mdb -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/obj/Debug/RhinoMocksExample.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/obj/Debug/RhinoMocksExample.dll.mdb -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/.NETFramework,Version=v4.0,Profile=Client.AssemblyAttribute.cs: -------------------------------------------------------------------------------- 1 | // 2 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0,Profile=Client", FrameworkDisplayName = "")] 3 | -------------------------------------------------------------------------------- /ThirdParty/Rhino.Mocks-3.6-Build-21/acknowledgements.txt: -------------------------------------------------------------------------------- 1 | Rhino Mocks is using Castle Dynamic Proxy (http://www.castleproject.org/dynamicproxy/index.html) to handle proxying the types it needs to mock. 2 | The Dynamic Proxy project has been invaluable resource and made creating Rhino Mocks possible. -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Linq/SampleData/GenderDescriptor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.Linq.Tests 4 | { 5 | public struct GenderDescriptor 6 | { 7 | public Gender Gender; 8 | 9 | public String Descripion; 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/test-results/RhinoMocksExampleTests.csproj.test-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/test-results/RhinoMocksExampleTests.csproj.test-cache -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/test-results/ADODotNetAndMySQLTests.csproj.test-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQLTests/test-results/ADODotNetAndMySQLTests.csproj.test-cache -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/InjectD.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class InjectD : IInject 6 | { 7 | public InjectD () 8 | { 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/test-results/MathsLibrary.Tests.csproj.test-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/test-results/MathsLibrary.Tests.csproj.test-cache -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/test-results/NinjectExampleTests.csproj.test-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukewickstead/DOT-NET-on-Linux/HEAD/SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExampleTests/test-results/NinjectExampleTests.csproj.test-cache -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/GrandParent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class GrandParent 6 | { 7 | public GrandParent () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/InjectA.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class InjectA : IInject 6 | { 7 | public InjectA () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/InjectB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class InjectB : IInject 6 | { 7 | public InjectB () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/ParentB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class ParentB : IParent 6 | { 7 | public ParentB () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/AdvancedFeatures/NullableExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.AdvancedFeatures 4 | { 5 | public class NullableExample 6 | { 7 | public static int Coalesce(int? aValue, int aNull) 8 | { 9 | return aValue ?? aNull; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Model/AnotherModel.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System; 4 | 5 | public struct AnotherModel 6 | { 7 | public int FieldA; 8 | public string FieldB; 9 | } 10 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/ParentA.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class ParentA : GrandParent, IParent 6 | { 7 | public ParentA () 8 | { 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/ADOProviders/IProviderFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ADODotNetAndMySQL.DAL.ADOProviders 4 | { 5 | public interface IProviderFactory 6 | { 7 | IADODataProviderFactory GetADODataProviderFactory(); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Streams/TheData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.Streams 4 | { 5 | public struct TheData 6 | { 7 | public int AnInt { get; set; } 8 | public double ADouble { get; set; } 9 | public char AChar { get; set; } 10 | public bool ABool { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/SelfBindExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class SelfBindExample 6 | { 7 | public void WhereAmI() 8 | { 9 | Console.WriteLine("SelfBindExample"); 10 | } 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/AuoSelfBindExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class AuoSelfBindExample 6 | { 7 | public void WhereAmI () 8 | { 9 | Console.WriteLine ("AutoSelfBindExample"); 10 | } 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/InjectWhenClassHas.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | [WhenClassHas] 7 | public class InjectWhenClassHas 8 | { 9 | [Inject] 10 | public IClass WhenClassHas { get; set; } 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/CalledBy.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public enum CalledBy 6 | { 7 | Empty, 8 | OneUnknown, 9 | OneKnown, 10 | TwoParametersOneUnknown, 11 | TwoParametersTwoUnknown, 12 | TwoParametersNoneUnknown 13 | } 14 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/SelfBindModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Modules; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | public class SelfBindModule : NinjectModule 8 | { 9 | public override void Load() 10 | { 11 | Bind().ToSelf(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/Attributes/WhenClassHas.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Planning.Bindings; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] 8 | public class WhenClassHas : Attribute 9 | { 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/ChildA.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class ChildA : ParentA, IChild 6 | { 7 | public IInject Inject { get; set; } 8 | 9 | public ChildA ( IInject inject ) 10 | { 11 | Inject = inject; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/DotNetExamplesTests.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/Models/SampleTable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ADODotNetAndMySQL.DAL.Models 4 | { 5 | public class SampleTable 6 | { 7 | public long Id { get; set; } 8 | 9 | public string Name { get; set; } 10 | 11 | public decimal Height { get; set; } 12 | 13 | public DateTime DateOfBirth { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ThirdParty/mysql-connector-net-6.8.3-noinstall/Release Notes.txt: -------------------------------------------------------------------------------- 1 | Connector/Net 6.8 Release Notes 2 | ------------------------------------ 3 | 4 | Welcome to the release notes for Connector/Net 6.8 5 | 6 | What's new in 6.8 7 | -------------------- 8 | 9 | - Entity Framework 6 support. 10 | 11 | 12 | Be sure and check the documentation for more information on these new features. -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/ContextualBinding/ChildB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class ChildB : ParentB, IChild 6 | { 7 | public IInject Inject { get; set; } 8 | 9 | public ChildB ( IInject inject) 10 | { 11 | Inject = inject; 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/RowVersionExampleTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture()] 8 | public class RowVersionExampleTest 9 | { 10 | [Test()] 11 | public void Test () 12 | { 13 | Assert.IsTrue (RowVersionExample.Example ()); 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/IModelRepository.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace RhinoMocksExample 5 | { 6 | public interface IModelRepository 7 | { 8 | bool IsMock { get; } 9 | int ModelCount { get; } 10 | void Add (Model aModel); 11 | void Remove (Model aModel); 12 | IEnumerable GetModels(); 13 | } 14 | } 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/ADOProviders/IADODataProviderFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Data; 3 | 4 | namespace ADODotNetAndMySQL.DAL.ADOProviders 5 | { 6 | public interface IADODataProviderFactory 7 | { 8 | IDbConnection GetConnection(); 9 | 10 | IDbDataAdapter GetDataAdapter(); 11 | 12 | string GetDBConnectionString(); 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/DebuggerDisplayAttributeExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace TestingMoqingDebugging.Debugging 5 | { 6 | [DebuggerDisplay("Name = {FirstName} {LastName}")] 7 | public class DebuggerDisplayAttributeExample 8 | { 9 | public string FirstName { get; set; } 10 | public string LastName { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/InjectWithIsSomething.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class InjectWithIsSomething 7 | { 8 | public IClass InjectedClass{ get; set; } 9 | 10 | public InjectWithIsSomething([IsSomething] IClass aClass) 11 | { 12 | InjectedClass = aClass; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/ScopeModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Modules; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | public class ScopeModule : NinjectModule 8 | { 9 | public override void Load() 10 | { 11 | Bind().ToSelf().InSingletonScope(); 12 | Bind().ToSelf().InTransientScope(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/ConnectedLayer/DataSetExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.ConnectedLayer; 4 | 5 | namespace ADO.ConnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class DataSetExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var count = DataSetExample.Example (); 14 | 15 | Assert.Greater (count, 1); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/AdvancedFeatures/StringExtensionsTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.AdvancedFeatures; 4 | 5 | namespace Advanced.AdvancedFeatures.Tests 6 | { 7 | [TestFixture ()] 8 | public class StringExtensionsTests 9 | { 10 | [Test ()] 11 | public void TestIsPalindrome () 12 | { 13 | Assert.IsTrue("ABBA".IsPalindrome()); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/LockRegionTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ThreadSynchronization.Tests 5 | { 6 | [TestFixture ()] 7 | public class LockRegionTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new LockRegion (); 13 | 14 | Assert.AreEqual (2, sut.Counter); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/ConnectedLayer/DataReaderExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.ConnectedLayer; 4 | 5 | namespace ADO.ConnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class DataReaderExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var count = DataReaderExample.Example (); 14 | Assert.Greater (count, 0); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/Connections/ConnectionStringBuilderExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace ADO.Connections.Tests 5 | { 6 | [TestFixture ()] 7 | public class ConnectionStringBuilderExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var isOpen = ConnectionStringBuilderExample.Example (); 13 | Assert.IsTrue (isOpen); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ConcurrentCollections/ConcurrentBagTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ConcurrentCollections.Tests 5 | { 6 | [TestFixture] 7 | public class ConcurrentBagTests 8 | { 9 | [Test] 10 | public void TestCase () 11 | { 12 | var sut = new ConcurrentBag (); 13 | sut.Run (); 14 | Assert.AreEqual (10, sut.Count); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/TimerExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.Spawning; 4 | 5 | namespace MultiThreading.Spawning.Tests 6 | { 7 | [TestFixture ()] 8 | public class TimerExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new TimerExample (); 14 | 15 | Assert.Greater (100, sut.Count); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/WarningAndErrorDirectives.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.Debugging 4 | { 5 | public class WarningAndErrorDirectives 6 | { 7 | public WarningAndErrorDirectives () 8 | { 9 | // #warning This code is obsolete (uncomment to show) 10 | #if DEBUG 11 | // #error Debug build is not allowed (uncomment to show) 12 | #endif 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/InjectWithIsNotSomething.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class InjectWithIsNotSomething 7 | { 8 | public IClass InjectedClass{ get; set; } 9 | 10 | public InjectWithIsNotSomething([IsNotSomething] IClass aClass) 11 | { 12 | InjectedClass = aClass; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/ConnectedLayer/DataReaderMultiSelectExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace ADO.ConnectedLayer.Tests 5 | { 6 | [TestFixture ()] 7 | public class DataReaderMultiSelectExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var count = DataReaderMultiSelectExample.Example (); 13 | 14 | Assert.AreEqual (2, count); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/DataAdapterExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using ADO.DisconnectedLayer; 3 | using NUnit.Framework; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class DataAdapterExampleTests 9 | { 10 | [Test ()] 11 | public void Test () 12 | { 13 | var sut = new DataAdapterExample (); 14 | 15 | Assert.IsTrue(sut.Example ()); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/ThreadJoinExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ThreadSynchronization.Tests 5 | { 6 | [TestFixture ()] 7 | public class ThreadJoinExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new ThreadJoinExample (); 13 | 14 | Assert.AreEqual (2, sut.Counter); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/NamedBindingModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Modules; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | public class NamedBindingModule : NinjectModule 8 | { 9 | public override void Load() 10 | { 11 | Bind().To().Named("NameknownC"); 12 | Bind().To().Named("NameknownD"); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/ConnectedLayer/TextCommandTypeExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.ConnectedLayer; 4 | 5 | namespace ADO.ConnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class TextCommandTypeExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var count = TextCommandTypeExample.Example (); 14 | Assert.Greater (count, 0); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/Connections/DbProviderFactoriesExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.Connections; 4 | 5 | namespace ADO.Connections.Tests 6 | { 7 | [TestFixture ()] 8 | public class DbProviderFactoriesExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var isOpen = DbProviderFactoriesExample.Example (); 14 | Assert.IsTrue (isOpen); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/ThreadPoolExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.Spawning; 4 | 5 | namespace MultiThreading.Spawning.Tests 6 | { 7 | [TestFixture ()] 8 | public class ThreadPoolExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new ThreadPoolExample (); 14 | 15 | Assert.IsTrue (sut.IsSet); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Model/Foo.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System; 4 | 5 | public interface IFoo 6 | { 7 | } 8 | 9 | public class Foo : IFoo 10 | { 11 | public Foo() 12 | { 13 | } 14 | } 15 | 16 | public class Moo : IFoo 17 | { 18 | public Moo() 19 | { 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/Attributes/WhenMemberHas.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Planning.Bindings; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, 8 | AllowMultiple = true, Inherited = true)] 9 | public class WhenMemberHas : Attribute 10 | { 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/Attributes/WhenTargetHas.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Planning.Bindings; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, 8 | AllowMultiple = true, Inherited = true)] 9 | public class WhenTargetHas : Attribute 10 | { 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/MultipleConstructorModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Modules; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | public class MultipleConstructorModule : NinjectModule 8 | { 9 | public override void Load() 10 | { 11 | Bind().ToSelf(); 12 | Bind().ToSelf(); 13 | //Bind().To(KnownD); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/DataTableReaderExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class DataTableReaderExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new DataTableReaderExample (); 14 | Assert.IsTrue (sut.Example ()); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/StopwatchExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TestingMoqingDebugging.Debugging.Tests 5 | { 6 | [TestFixture ()] 7 | public class StopwatchExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var result = StopwatchExample.Example (); 13 | 14 | Assert.Greater (result.Milliseconds, 0); 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/ConnectedLayer/CommandParametersExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.ConnectedLayer; 4 | 5 | namespace ADO.ConnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class CommandParametersExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var count = CommandParametersExample.Example (); 14 | 15 | Assert.AreEqual (1, count); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/SQLCommandBuilderExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using ADO.DisconnectedLayer; 3 | using NUnit.Framework; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class SQLCommandBuilderExampleTests 9 | { 10 | [Test ()] 11 | public void Test () 12 | { 13 | var sut = new SQLCommandBuilderExample (); 14 | 15 | Assert.IsTrue(sut.Example ()); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/ConnectedLayer/ExecuteNonQueryExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.ConnectedLayer; 4 | 5 | namespace ADO.ConnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class ExecuteNonQueryExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var count = ExecuteNonQueryExample.Example (); 14 | 15 | Assert.AreEqual (1, count); 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/Utils/CSVHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Text; 4 | using System.Collections.Generic; 5 | 6 | namespace ADODotNetAndMySQL.Utils 7 | { 8 | public class CSVHelper 9 | { 10 | public static Char COMMA = ','; 11 | 12 | public static string GetCSVString (List entries) 13 | { 14 | return string.Join (COMMA.ToString (), entries.ToArray ()); 15 | } 16 | } 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/PragmaExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.Debugging 4 | { 5 | public class PragmaExample 6 | { 7 | public PragmaExample () 8 | { 9 | #pragma warning disable 10 | while (false) { 11 | // Compiler Warning: unreachable code. 12 | } 13 | 14 | int i; // Compiler Warning: i is declared but never used 15 | #pragma warning restore 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/App.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet/Misc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.IO; 4 | using System.Text; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using NUnit.Framework; 8 | 9 | [TestFixture] 10 | public class MyTests 11 | { 12 | [Test] 13 | public void BasicTest () 14 | { 15 | Assert.IsTrue (true); 16 | } 17 | 18 | [Test] 19 | public void BasicFailedTest () 20 | { 21 | Assert.IsTrue (false); 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/FillSchemaExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class FillSchemaExampleTests 9 | { 10 | [Test ()] 11 | public void TestFill () 12 | { 13 | var aDataSet = FillSchemaExample.Example (); 14 | 15 | Assert.IsNotEmpty (aDataSet.Tables [0].PrimaryKey); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/SerializationExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class SerializationExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new SerializationExample (); 14 | 15 | Assert.AreEqual (sut.PostDataSet, sut.PostDataSet); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/PathExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using NUnit.Framework; 4 | 5 | namespace Advanced.Streams.Tests 6 | { 7 | public class PathExampleTests 8 | { 9 | [Test()] 10 | public void TestCombine () 11 | { 12 | string fullPath = Path.Combine (Path.GetTempPath(), "test.dat"); 13 | 14 | Assert.AreEqual (String.Format ("{0}{1}", Path.GetTempPath(), "test.dat"), fullPath); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/ThreadStartExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using System.Threading; 4 | using MultiThreading.Spawning; 5 | 6 | namespace MultiThreading.Spawning.Tests 7 | { 8 | [TestFixture ()] 9 | public class ThreadStartExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var sut = new ThreadStartExample (); 15 | 16 | Assert.IsTrue(sut.IsSet); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/DebugExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TestingMoqingDebugging.Debugging.Tests 5 | { 6 | [TestFixture ()] 7 | public class DebugExampleTests 8 | { 9 | [Test ()] 10 | [ExpectedException] 11 | [Ignore("Mono has a bug where Assert and Fail are not throwing exceptions")] 12 | public void TestCase () 13 | { 14 | DebugExample.Run (); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/App.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/DotNetExamples.dll.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/XML/HydrationExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace Advanced.XML.Tests 5 | { 6 | [TestFixture ()] 7 | public class HydrationExampleTests 8 | { 9 | [Test ()] 10 | public void TestBuild () 11 | { 12 | var aDoc = HydrationExample.BuildXElement (); 13 | var bDoc = HydrationExample.BuildXElementWithLinq (); 14 | 15 | Assert.AreEqual (aDoc.ToString (), bDoc.ToString ()); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/XML/VAlidateXMLExample.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.XML; 4 | 5 | namespace Advanced.XML.Tests 6 | { 7 | [TestFixture ()] 8 | public class VAlidateXMLExample 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new VAlidateXML (); 14 | 15 | // Allows incorrect xml validation 16 | Assert.IsFalse (sut.HasError); 17 | Assert.IsFalse (sut.HasWarning); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/ConditionalAttributeExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace TestingMoqingDebugging.Debugging 5 | { 6 | public class ConditionalAttributeExample 7 | { 8 | public bool? Hit { get; private set;} 9 | 10 | public ConditionalAttributeExample () 11 | { 12 | Log (); 13 | } 14 | 15 | [Conditional("DEBUG")] 16 | private void Log() 17 | { 18 | Hit = true; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/DebugExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace TestingMoqingDebugging.Debugging 5 | { 6 | public class DebugExample 7 | { 8 | public static void Run () 9 | { 10 | Debug.WriteLine("Starting application"); 11 | Debug.Indent(); 12 | int i = 1 + 2; 13 | Debug.Assert(i == 0); 14 | Debug.WriteLineIf(i > 0, "i is greater than 0"); 15 | Debug.Fail ("Ohh noo"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/ADOProviders/ProviderFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using ADODotNetAndMySQL.Utils; 4 | 5 | namespace ADODotNetAndMySQL.DAL.ADOProviders 6 | { 7 | public class ProviderFactory : IProviderFactory 8 | { 9 | public IADODataProviderFactory GetADODataProviderFactory() 10 | { 11 | return InjectionFactory.Instance.kernel.Get(); 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/RuntimeConstructorArgumentExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class RuntimeConstructorArgumentExample 6 | { 7 | public string Name { get; set; } 8 | public bool IsAlive { get; set; } 9 | 10 | public RuntimeConstructorArgumentExample ( string name, bool isAlive) 11 | { 12 | Name = name; 13 | IsAlive = isAlive; 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/AutoResetEventExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.ThreadSynchronization; 4 | 5 | namespace MultiThreading.ThreadSynchronization.Tests 6 | { 7 | [TestFixture ()] 8 | public class AutoResetEventExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new AutoResetEventExample (); 14 | Assert.AreEqual (3, sut.Counter); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Linq/Utils/PersonSexComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Advanced.Linq.Tests 5 | { 6 | public class PersonSexComparer : IEqualityComparer 7 | { 8 | public bool Equals (Person x, Person y) 9 | { 10 | return x.Gender == y.Gender; 11 | } 12 | 13 | public int GetHashCode (Person obj) 14 | { 15 | return obj.Gender.GetHashCode (); 16 | } 17 | 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/ConditionalAttributeExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TestingMoqingDebugging.Debugging.Tests 5 | { 6 | [TestFixture ()] 7 | public class ConditionalAttributeExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new ConditionalAttributeExample (); 13 | 14 | Assert.IsTrue (sut.Hit.HasValue); 15 | Assert.IsTrue (sut.Hit.Value); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/ParameterizedThreadStartCancelExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.Spawning; 4 | 5 | namespace MultiThreading.Spawning.Tests 6 | { 7 | [TestFixture ()] 8 | public class ParameterizedThreadStartCancelExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new ParameterizedThreadStartCancelExample (); 14 | 15 | Assert.IsTrue (sut.IsCancelled); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/InterlockedExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.ThreadSynchronization; 4 | 5 | namespace MultiThreading.ThreadSynchronization.Tests 6 | { 7 | [TestFixture ()] 8 | public class InterlockedExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new InterlockedExample(); 14 | 15 | 16 | Assert.AreEqual (20, sut.ANumber); 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/MultiThreading/Spawning/TimerExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace MultiThreading.Spawning 5 | { 6 | public class TimerExample 7 | { 8 | public int Count { get; private set; } 9 | 10 | public TimerExample () 11 | { 12 | using (var t = new Timer (new TimerCallback (MyMethod), new object (), 2, 1)) { 13 | Thread.Sleep (1); 14 | } 15 | } 16 | 17 | private void MyMethod (object obj) 18 | { 19 | Count++; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ConcurrentCollections/ConcurrentQueueExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ConcurrentCollections.Tests 5 | { 6 | [TestFixture ()] 7 | public class ConcurrentQueueExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new ConcurrentQueueExample (); 13 | sut.Run (); 14 | 15 | Assert.AreEqual (10, sut.Put); 16 | Assert.AreEqual (10, sut.Take); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/ADO/Connections/ConfigurationManagerExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Configuration; 3 | 4 | namespace ADO.Connections 5 | { 6 | public class ConfigurationManagerExampleADO 7 | { 8 | public static void GetConnectionString (out string connection, out string provider) 9 | { 10 | var myConnection = ConfigurationManager.ConnectionStrings ["MyDatabase"]; 11 | 12 | provider = myConnection.ProviderName; 13 | connection = myConnection.ConnectionString; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Attributes/ImplodeAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.Attributes 4 | { 5 | [AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method, Inherited = false)] 6 | public class ImplodeAttribute : Attribute 7 | { 8 | public bool Big { get; private set;} 9 | public bool Now { get; private set;} 10 | 11 | public ImplodeAttribute (bool big, bool now) 12 | { 13 | this.Big = big; 14 | this.Now = now; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/DerrivedAtrributeModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject.Modules; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class DerrivedAtrributeModule : NinjectModule 7 | { 8 | public override void Load() 9 | { 10 | Bind().To().WhenClassHas(); 11 | Bind().To().WhenTargetHas(); 12 | Bind().To().WhenMemberHas(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/TraceSourceExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using TestingMoqingDebugging.Debugging; 4 | 5 | namespace TestingMoqingDebugging.Debugging.Tests 6 | { 7 | [TestFixture ()] 8 | public class TraceSourceExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new TraceSourceExample (); 14 | sut.Example (); 15 | var result = sut.ReadFile (); 16 | 17 | Assert.IsNotEmpty (result); 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Model/IModelRepository.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | public interface IModelRepository 7 | { 8 | bool IsMock { get; } 9 | 10 | int ModelCount { get; } 11 | 12 | void Add(AnotherModel theModel); 13 | 14 | void Remove(AnotherModel theModel); 15 | 16 | IEnumerable GetModels(); 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/AdvancedFeatures/NullableExampleTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using Advanced.AdvancedFeatures; 4 | 5 | namespace Advanced.AdvancedFeatures.Tests 6 | { 7 | [TestFixture ()] 8 | public class NullableExampleTest 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | int? aInput = null; 14 | int aNull = 999; 15 | 16 | int aValue = NullableExample.Coalesce (aInput, aNull); 17 | 18 | Assert.AreEqual (aValue, aNull); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Security/SHA256Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Security.Cryptography; 4 | 5 | namespace AssembliesReflectionSecurity.Security 6 | { 7 | public class SHA256Example 8 | { 9 | public static byte[] Hash (string data) 10 | { 11 | UnicodeEncoding byteConverter = new UnicodeEncoding (); 12 | 13 | using (var sha256 = SHA256.Create ()) { 14 | return sha256.ComputeHash (byteConverter.GetBytes (data)); 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/LineDirective.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.Debugging 4 | { 5 | public class LineDirective 6 | { 7 | public static int Example () 8 | { 9 | #line 200 "OtherFileName" 10 | 11 | int a = 1; // line 200 12 | 13 | #line default 14 | 15 | int b = 2; // line 4 16 | 17 | #line hidden 18 | 19 | int c = 3; // hidden 20 | int d = 4; // line 21 | 22 | return a + b + c + d; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/ConstructorWithArguments.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.NInject 4 | { 5 | public class ConstructorWithArguments 6 | { 7 | public int AnInt { get; set; } 8 | public string AString{ get; set; } 9 | public IClass AClass { get; set; } 10 | 11 | public ConstructorWithArguments (int anInt, string aString, IClass aClass) 12 | { 13 | AnInt = anInt; 14 | AString = aString; 15 | AClass = aClass; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/InjectWhenMemberAndTargetHas.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class InjectWhenMemberAndTargetHas 7 | { 8 | [Inject, WhenMemberHas] 9 | public IClass WhenMemberHas { get; set; } 10 | 11 | public IClass WhenTargetHas { get; set; } 12 | 13 | public InjectWhenMemberAndTargetHas([WhenTargetHas] IClass aClass) 14 | { 15 | WhenTargetHas = aClass; 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/ThreadPoolCancelExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.Spawning; 4 | 5 | namespace MultiThreading.Spawning.Tests 6 | { 7 | [TestFixture ()] 8 | public class ThreadPoolCancelExampleTests 9 | { 10 | [Test ()] 11 | //[ExpectedException(typeof(OperationCanceledException))] // TODO: Fix 12 | public void TestCase () 13 | { 14 | var sut = new ThreadPoolCancelExample (); 15 | 16 | Assert.IsTrue (sut.IsSet); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Basics/DisposableClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class DisposableClass : IDisposable 4 | { 5 | private bool disposed = false; 6 | 7 | protected virtual void Dispose (bool disposing) 8 | { 9 | if (!disposed) { 10 | if (disposing) { 11 | // Clear up here. 12 | } 13 | 14 | disposed = true; 15 | } 16 | } 17 | 18 | public void Dispose () 19 | { 20 | Dispose (true); 21 | GC.SuppressFinalize (this); 22 | } 23 | 24 | ~DisposableClass () 25 | { 26 | Dispose (false); 27 | } 28 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Security/X509ExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Security; 4 | 5 | namespace AssembliesReflectionSecurity.Security.Tests 6 | { 7 | [TestFixture ()] 8 | [Ignore ("Requires Certificate Server")] 9 | public class X509ExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var aString = "This is a string"; 15 | 16 | Assert.IsTrue (X509Example.SignAndVerify (aString)); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/ParameterizedThreadStartExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using System.Threading; 4 | using MultiThreading.Spawning; 5 | 6 | namespace MultiThreading.Spawning.Tests 7 | { 8 | [TestFixture ()] 9 | public class ParameterizedThreadStartExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var sut = new ParameterizedThreadStartExample (); 15 | 16 | Thread.Sleep (100); 17 | Assert.IsTrue(sut.IsSet); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/CustomCompilerDirectivesExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TestingMoqingDebugging.Debugging.Tests 5 | { 6 | [TestFixture ()] 7 | public class CustomCompilerDirectivesExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new CustomCompilerDirectivesExample (); 13 | 14 | Assert.IsTrue (sut.HitOne); 15 | Assert.IsFalse (sut.HitTwo); 16 | Assert.IsTrue (sut.HitThree); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Security/SHA1ManagedExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Security.Cryptography; 4 | 5 | namespace AssembliesReflectionSecurity.Security 6 | { 7 | public class SHA1ManagedExample 8 | { 9 | public static byte[] HashData (string text) 10 | { 11 | using (var hashAlgorithm = new SHA1Managed ()) { 12 | 13 | var encoding = new UnicodeEncoding (); 14 | 15 | return hashAlgorithm.ComputeHash (encoding.GetBytes (text)); 16 | } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/HTTPWebRequestExampleTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Streams; 4 | 5 | namespace Advanced.Streams.Tests 6 | { 7 | [TestFixture ()] 8 | public class HTTPWebRequestExampleTest 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var foo = HTTPWebRequestExample.Get ("http://www.google.co.uk"); 14 | 15 | Assert.IsNotEmpty (foo); 16 | Assert.IsTrue (foo.Contains ("google")); 17 | Assert.IsTrue (foo.Contains ("doodle")); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/WithMetadataModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Modules; 4 | using Ninject.Planning.Bindings; 5 | 6 | namespace TestingMoqingDebugging.NInject 7 | { 8 | public class WithMetadataModule : NinjectModule 9 | { 10 | public override void Load () 11 | { 12 | Bind ().To (); 13 | Bind ().To ().WithMetadata ("IsSomething", true); 14 | Bind ().To ().WithMetadata ("IsSomething", false); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/AdvancedFeatures/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.AdvancedFeatures 4 | { 5 | public static class StringExtensions 6 | { 7 | public static string Reverse (this string foo) 8 | { 9 | var stringArray = foo.ToCharArray (); 10 | Array.Reverse (stringArray); 11 | return new string (stringArray); 12 | } 13 | 14 | public static bool IsPalindrome (this String input) 15 | { 16 | return input.Equals (input.Reverse (), StringComparison.InvariantCultureIgnoreCase); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/KernelModules/ContextualBindingModule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject.Modules; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class ContextualBindingModule : NinjectModule 7 | { 8 | public override void Load () 9 | { 10 | Bind ().ToSelf (); 11 | Bind ().ToSelf (); 12 | 13 | Bind ().To ().WhenInjectedInto (typeof(GrandParent)); 14 | Bind ().To ().WhenInjectedExactlyInto (typeof(ChildB)); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/FillDataSetExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class FillDataSetExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var ds = FillDataSetExample.Example (); 14 | 15 | Assert.Greater (ds.Tables.Count, 0); 16 | Assert.Greater (ds.Tables[0].Rows.Count, 0); 17 | Assert.Greater (ds.Tables[0].Columns.Count, 0); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/DebuggerDisplayAttributeExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TestingMoqingDebugging.Debugging.Tests 5 | { 6 | [TestFixture ()] 7 | public class DebuggerDisplayAttributeExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new DebuggerDisplayAttributeExample (); 13 | sut.FirstName = "Sir"; 14 | sut.LastName = "Fluffy"; 15 | 16 | Assert.AreNotEqual ("Name = Sir Fluffy", sut.ToString ()); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/Schema/SampleTableSchema.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using ADODotNetAndMySQL.DAL.Models; 4 | 5 | namespace ADODotNetAndMySQL.DAL.Schema 6 | { 7 | public class SampleTableSchema 8 | { 9 | public static string TableName = "SampleTable"; 10 | 11 | public static class Fields 12 | { 13 | public static string Id = "idSampleTable"; 14 | public static string Name = "Name"; 15 | public static string Height = "Height"; 16 | public static string DateOfBirth = "DateOfBirth"; 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/SynchronizationAttributeExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.ThreadSynchronization; 4 | 5 | namespace MultiThreading.ThreadSynchronization.Tests 6 | { 7 | [TestFixture ()] 8 | public class SynchronizationAttributeExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new SynchronizedAttributeExample (); 14 | sut.DoBombCounter (); 15 | Assert.AreEqual (4, sut.SAE.Counter); 16 | 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/SQL/IModelSQLBuilderHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using ADODotNetAndMySQL.DAL.Models; 4 | 5 | namespace ADODotNetAndMySQL.DAL.SQL 6 | { 7 | public interface IModelSQLBuilderHelper 8 | { 9 | string GetTableName (); 10 | 11 | long GetId (T model); 12 | 13 | string GetIdFieldName (); 14 | 15 | string GetValues (T model); 16 | 17 | string GetValuesWithID (T model); 18 | 19 | string GetFields (); 20 | 21 | string GetFieldswithID (); 22 | 23 | string GetSetString (T model); 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/FileExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using NUnit.Framework; 4 | 5 | namespace Advanced.Streams.Tests 6 | { 7 | [TestFixture()] 8 | public class FileExampleTests 9 | { 10 | [Test ()] 11 | public void Test () 12 | { 13 | var aFilePath = Path.GetTempFileName (); 14 | var aString = "This is a string"; 15 | 16 | File.WriteAllText (aFilePath, aString); 17 | string[] data = File.ReadAllLines (aFilePath); 18 | 19 | Assert.AreEqual (aString, data [0]); 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/AdvancedFeatures/LazyLoadExampleTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using System.Collections.Generic; 4 | 5 | namespace Advanced.AdvancedFeatures.Tests 6 | { 7 | public class LazyLoadExampleTest 8 | { 9 | [Test()] 10 | public void TestLazy () 11 | { 12 | Lazy> samples = new Lazy>( () => new List(){1,2,3,4,5,6,7,8,9}); 13 | 14 | Assert.IsFalse(samples.IsValueCreated); 15 | Assert.AreEqual(9, samples.Value.Count); 16 | Assert.IsTrue(samples.IsValueCreated); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Streams/HTTPWebRequestExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Net; 4 | 5 | namespace Advanced.Streams 6 | { 7 | public class HTTPWebRequestExample 8 | { 9 | public static string Get (string aURL) 10 | { 11 | WebRequest webRequest = WebRequest.Create (aURL); 12 | 13 | using (WebResponse webResponse = webRequest.GetResponse ()) { 14 | using (StreamReader streamReader = new StreamReader (webResponse.GetResponseStream ())) { 15 | return streamReader.ReadToEnd (); 16 | } 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Attributes/AttributesExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Attributes; 4 | using System.Linq; 5 | 6 | namespace Advanced.Attributes 7 | { 8 | [TestFixture ()] 9 | public class AttributesExampleTests 10 | { 11 | [Test ()] 12 | public void TestAttributes () 13 | { 14 | var foo = new AnnotatedClass (); 15 | var attributes = foo.GetType ().GetCustomAttributes (true); 16 | 17 | Assert.IsNotEmpty (attributes.Where (x => x.GetType ().Name == "ImplodeAttribute").ToList()); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/bin/Debug/AppDomainEvents.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/MultiThreading/Spawning/ThreadPoolExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace MultiThreading.Spawning 5 | { 6 | public class ThreadPoolExample 7 | { 8 | public bool IsSet { get ; private set; } 9 | 10 | public ThreadPoolExample () 11 | { 12 | var wcb = new WaitCallback (DoMethod); 13 | 14 | ThreadPool.QueueUserWorkItem (wcb, new object ()); 15 | 16 | while(!IsSet) 17 | { 18 | Thread.Sleep (25); 19 | } 20 | } 21 | 22 | private void DoMethod (object obj) 23 | { 24 | IsSet = true; 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/FileStreamExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Streams; 4 | 5 | namespace Advanced.Streams.Tests 6 | { 7 | [TestFixture ()] 8 | public class FileStreamExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var aString = "This is a string"; 14 | int size; 15 | 16 | var aFilePath = FileStreamExample.WriteData (aString, out size); 17 | var aOutString = FileStreamExample.ReadData (aFilePath, size); 18 | 19 | Assert.AreEqual (aString, aOutString); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/GZipStreamExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Streams; 4 | 5 | namespace Advanced.Streams.Tests 6 | { 7 | [TestFixture ()] 8 | public class GZipStreamExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var aString = "This is a string"; 14 | int size; 15 | 16 | var aFilePath = GZipStreamExample.WriteData (aString, out size); 17 | var aOutString = GZipStreamExample.ReadData (aFilePath, size); 18 | 19 | Assert.AreEqual (aString, aOutString); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/PerformanceCounterMemoryExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using System.Linq; 4 | using TestingMoqingDebugging.Debugging; 5 | 6 | namespace TestingMoqingDebugging.Debugging.Tests 7 | { 8 | [TestFixture ()] 9 | public class PerformanceCounterMemoryExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var result = PerformanceCounterMemoryExample.Example (); 15 | 16 | Assert.AreEqual (1000, result.Count); 17 | Assert.IsTrue (result.All (x => x > 0)); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Assemblies/AppSettingsReaderExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Configuration; 3 | 4 | namespace AssembliesReflectionSecurity.Assembilies 5 | { 6 | public class AppSettingsReaderExample 7 | { 8 | public static T GetAppSettingValue (string name) 9 | { 10 | // To help figure out which machine.config is in used. 11 | var machineConigLocation = ConfigurationManager.OpenMachineConfiguration ().FilePath; 12 | 13 | var reader = new AppSettingsReader (); 14 | 15 | return (T)reader.GetValue (name, typeof(T)); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/MultiThreading/Spawning/ThreadStart.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace MultiThreading.Spawning 5 | { 6 | public class ThreadStartExample 7 | { 8 | public bool IsSet { get; private set; } 9 | 10 | public ThreadStartExample () 11 | { 12 | var aThread = new Thread (new ThreadStart (MyMethod)) { 13 | Name = "My Thread", 14 | Priority = ThreadPriority.Highest 15 | }; 16 | 17 | aThread.Start (); 18 | aThread.Join (); 19 | } 20 | 21 | private void MyMethod () 22 | { 23 | IsSet = true; 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/CallingAStoredProcesureExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class CallingAStoredProcesureExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var aDS = CallingAStoredProcesureExample.Example (); 14 | 15 | Assert.AreEqual (2, aDS.Tables.Count); 16 | 17 | Assert.Greater (aDS.Tables[0].Rows.Count, 0); 18 | Assert.Greater (aDS.Tables[1].Rows.Count, 0); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Collections/QueueExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using NUnit.Framework; 4 | 5 | namespace Advanced.Collections.Tests 6 | { 7 | public class QueueExampleTests 8 | { 9 | [Test ()] 10 | public void TestExample () 11 | { 12 | var foos = new Queue (); 13 | 14 | foos.Enqueue (1); 15 | Assert.AreEqual (1, foos.Peek ()); 16 | 17 | foos.Enqueue (2); 18 | Assert.AreEqual (1, foos.Peek ()); 19 | 20 | Assert.AreEqual (1, foos.Dequeue ()); 21 | Assert.AreEqual (2, foos.Peek ()); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/BinaryFormatterExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace Advanced.Serialization.Tests 5 | { 6 | [TestFixture ()] 7 | public class BinaryFormatterExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var model = new MyModel (){ AnInt = 1, AString = "A", ABool = true }; 13 | 14 | var aFileName = BinaryFormatterExample.Serialize (model); 15 | var outModel = BinaryFormatterExample.Deserialize (aFileName); 16 | 17 | Assert.AreEqual (model, outModel); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/CompilerDirectivesExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace TestingMoqingDebugging.Debugging.Tests 5 | { 6 | [TestFixture ()] 7 | public class CompilerDirectivesExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new CompilerDirectivesExample (); 13 | sut.Run (); 14 | 15 | Assert.IsTrue (sut.HitOne.HasValue); 16 | Assert.IsTrue (sut.HitOne.Value); 17 | Assert.IsTrue (sut.HitTwo.HasValue); 18 | Assert.IsTrue (sut.HitTwo.Value); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Security/ToHashTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Security; 4 | 5 | namespace AssembliesReflectionSecurity.Security.Tests 6 | { 7 | [TestFixture ()] 8 | public class ToHashTest 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new ToHash (){ FieldString = "AString", FieldBool = true, FieldInt = 99, FieldDecimal = 66.666m }; 14 | 15 | var h1 = sut.GetHashCode (); 16 | var h2 = sut.GetHashCode (); 17 | 18 | Assert.AreEqual (h1, h2); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents/obj/x86/Debug/AppDomainEvents.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | \\pedata1\users$\lwickste\my documents\visual studio 2010\Projects\AppDomainEvents\AppDomainEvents\bin\Debug\AppDomainEvents.exe 2 | \\pedata1\users$\lwickste\my documents\visual studio 2010\Projects\AppDomainEvents\AppDomainEvents\bin\Debug\AppDomainEvents.pdb 3 | \\pedata1\users$\lwickste\my documents\visual studio 2010\Projects\AppDomainEvents\AppDomainEvents\obj\x86\Debug\AppDomainEvents.exe 4 | \\pedata1\users$\lwickste\my documents\visual studio 2010\Projects\AppDomainEvents\AppDomainEvents\obj\x86\Debug\AppDomainEvents.pdb 5 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/CompilerDirectivesExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestingMoqingDebugging.Debugging 4 | { 5 | public class CompilerDirectivesExample 6 | { 7 | public bool? HitOne { get; private set; } 8 | 9 | public bool? HitTwo { get; private set; } 10 | 11 | public void Run () 12 | { 13 | #if DEBUG 14 | HitOne = true; 15 | #else 16 | HitOne = false; 17 | #endif 18 | 19 | #if DEBUG 20 | Log (); 21 | #endif 22 | } 23 | 24 | private void Log () 25 | { 26 | HitTwo = true; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/Attributes/IsSomething.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Planning.Bindings; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, 8 | AllowMultiple = true, Inherited = true)] 9 | public class IsSomething : ConstraintAttribute 10 | { 11 | public override bool Matches (IBindingMetadata metadata) 12 | { 13 | return metadata.Has ("IsSomething") && metadata.Get ("IsSomething"); 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/DynamicRuntime/DynamicTypeExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using AssembliesReflectionSecurity.DynamicRuntime; 3 | 4 | namespace AssembliesReflectionSecurity.DynamicRuntime.Tests 5 | { 6 | [TestFixture ()] 7 | public class DynamicTypeExampleTests 8 | { 9 | [Test ()] 10 | public void TestWithDynamic () 11 | { 12 | Assert.AreEqual (4, DynamicTypeExample.WithDynamic ()); 13 | } 14 | 15 | [Test ()] 16 | public void TestWithoutDynamic () 17 | { 18 | Assert.AreEqual (1, DynamicTypeExample.WithoutDynamic ()); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExample/RhinoMocksExample/ModelRepository.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace RhinoMocksExample 5 | { 6 | public class ModelRepository : IModelRepository 7 | { 8 | public bool IsMock { get; private set; } 9 | public int ModelCount { get; private set; } 10 | 11 | public void Add (Model aModel) 12 | { 13 | ModelCount ++; 14 | } 15 | 16 | public void Remove(Model aModel) 17 | { 18 | ModelCount++; 19 | } 20 | 21 | public IEnumerable GetModels() 22 | { 23 | return new List(); 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Security/MD5Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace DotNetExamples 4 | { 5 | public class MD5Example 6 | { 7 | public MD5Example () 8 | { 9 | 10 | // TDOO: Create and synch 11 | 12 | /* 13 | String md5Result; 14 | StringBuilder sb = new StringBuilder(); 15 | MD5 md5Hasher = MD5.Create(); 16 | 17 | using (FileStream fs = File.OpenRead(pathDest)) 18 | { 19 | foreach (Byte b in md5Hasher.ComputeHash(fs)) 20 | sb.Append(b.ToString("x2").ToLower()); 21 | } 22 | 23 | md5Result = sb.ToString(); 24 | */ 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/Attributes/IsNotSomething.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using Ninject.Planning.Bindings; 4 | 5 | namespace TestingMoqingDebugging.NInject 6 | { 7 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, 8 | AllowMultiple = true, Inherited = true)] 9 | public class IsNotSomething : ConstraintAttribute 10 | { 11 | public override bool Matches (IBindingMetadata metadata) 12 | { 13 | return metadata.Has ("IsSomething") && !metadata.Get ("IsSomething"); 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/BinaryReaderWriterTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Streams; 4 | 5 | namespace Advanced.Streams.Tests 6 | { 7 | [TestFixture ()] 8 | public class BinaryReaderWriterTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var theData = new TheData (){ ABool = true, AChar = 'A', ADouble = 2, AnInt = 33 }; 14 | 15 | var aFileName = BinaryReaderWriterExample.WriteData(theData); 16 | var thisData = BinaryReaderWriterExample.Readata (aFileName); 17 | 18 | Assert.AreEqual (theData, thisData); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Model/ISimpleModel.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System.Collections.Generic; 4 | 5 | public interface ISimpleModel 6 | { 7 | int AProperty { get; set; } 8 | 9 | int AReadonlyPropery { get; } 10 | 11 | int Do(); 12 | 13 | int Do(int x); 14 | 15 | int Do(string x); 16 | 17 | int DoIFoo(IFoo x); 18 | 19 | int Do(List x); 20 | 21 | int Do(int x, ref int y); 22 | 23 | int Do(int x, string y, out int z); 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Basics/IConvertibleExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | 4 | public class MyFormatter : ICustomFormatter, IFormatProvider 5 | { 6 | public string Format (string format, Object arg, IFormatProvider formatProvider) 7 | { 8 | switch (format.ToUpperInvariant ()) { 9 | case "A": 10 | return "This would be format A"; 11 | case "B": 12 | return "This would be format B"; 13 | default: 14 | return "No one is home"; 15 | 16 | } 17 | } 18 | 19 | object IFormatProvider.GetFormat (Type formatType) 20 | { 21 | throw new NotImplementedException (); 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/SoapFormatterExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Serialization; 4 | 5 | namespace Advanced.Serialization.Tests 6 | { 7 | [TestFixture ()] 8 | public class SoapFormatterExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var model = new MyModel (){ AnInt = 1, AString = "A", ABool = true }; 14 | 15 | var aFileName = SoapFormatterExample.Serialize (model); 16 | var outModel = SoapFormatterExample.Deserialize (aFileName); 17 | 18 | Assert.AreEqual (model, outModel); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/XMLSerializerExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Serialization; 4 | 5 | namespace Advanced.Serialization.Tests 6 | { 7 | [TestFixture ()] 8 | public class XMLSerializerExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var model = new MyModel (){ AnInt = 1, AString = "A", ABool = true }; 14 | 15 | var aFileName = XMLSerializerExample.Serialize (model); 16 | var outModel = XMLSerializerExample.Deserialize (aFileName); 17 | 18 | Assert.AreEqual (model, outModel); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/obj/Debug/MathsLibrary.Tests.csproj.FilesWrittenAbsolute.txt: -------------------------------------------------------------------------------- 1 | /home/lukey/Dropbox/Development/SandBox/Git/DOT-NET-on-Linux/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs 2 | /home/lukey/Dropbox/Development/SandBox/Git/DOT-NET-on-Linux/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.dll 3 | /home/lukey/Dropbox/Development/SandBox/Git/DOT-NET-on-Linux/SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests/bin/Debug/MathsLibrary.dll.mdb 4 | -------------------------------------------------------------------------------- /DetailedExamples/NUnitCheatSheet/NUnitCheatSheet.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/MultiThreading/ThreadSynchronization/ThreadJoinExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace MultiThreading.ThreadSynchronization 5 | { 6 | public class ThreadJoinExample 7 | { 8 | public int Counter { get; private set; } 9 | 10 | public ThreadJoinExample () 11 | { 12 | Thread t1 = new Thread (() => { 13 | Counter++; 14 | Thread.Sleep (1); 15 | }); 16 | 17 | Thread t2 = new Thread (() => { 18 | Counter++; 19 | Thread.Sleep (2); 20 | }); 21 | 22 | t1.Start (); 23 | t2.Start (); 24 | 25 | t1.Join (); 26 | t2.Join (); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Collections/StackExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using NUnit.Framework; 4 | 5 | namespace Advanced.Collections.Tests 6 | { 7 | [TestFixture()] 8 | public class StackExampleTests 9 | { 10 | [Test ()] 11 | public void TestStackExample () 12 | { 13 | var fooStack = new Stack (); 14 | 15 | fooStack.Push (1); 16 | Assert.AreEqual (1, fooStack.Peek ()); 17 | 18 | fooStack.Push (2); 19 | Assert.AreEqual (2, fooStack.Peek ()); 20 | 21 | Assert.AreEqual (2, fooStack.Pop ()); 22 | Assert.AreEqual (1, fooStack.Peek ()); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Security/AESEncrptionExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace AssembliesReflectionSecurity.Security.Tests 5 | { 6 | [TestFixture ()] 7 | public class AESEncrptionExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var aString = "This is a string"; 13 | 14 | byte[] key; 15 | byte[] iV; 16 | 17 | var encrypted = AESEncrptionExample.Encrypt (aString, out key, out iV); 18 | var decrypted = AESEncrptionExample.Decrypt (encrypted, key, iV); 19 | 20 | Assert.AreEqual (aString, decrypted); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/MultiThreading/Spawning/ParameterizedThreadStart.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace MultiThreading.Spawning 5 | { 6 | public class ParameterizedThreadStartExample 7 | { 8 | public bool IsSet { get; private set; } 9 | 10 | public ParameterizedThreadStartExample () 11 | { 12 | var aThread = new Thread (new ParameterizedThreadStart (MyMethod)) { 13 | Name = "My Thread", 14 | Priority = ThreadPriority.Highest 15 | }; 16 | 17 | aThread.Start (new object ()); 18 | } 19 | 20 | private void MyMethod (object foo) 21 | { 22 | IsSet = true; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/DataContractJsonSerializerExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace Advanced.Serialization.Tests 5 | { 6 | [TestFixture ()] 7 | public class DataContractJsonSerializerExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var model = new MyModelDC (){ AnInt = 1, AString = "A", ABool = true }; 13 | 14 | var aFileName = DataContractJsonSerializerExample.WriteObject (model); 15 | var outModel = DataContractJsonSerializerExample.ReadObject (aFileName); 16 | 17 | Assert.AreEqual (model, outModel); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/ExampleISerializableTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Serialization; 4 | 5 | namespace Advanced.Serialization.Tests 6 | { 7 | [TestFixture ()] 8 | public class ExampleISerializableTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var model = new ExampleISerializable () { MyField = "Hello" }; 14 | 15 | var aFileName = BinaryFormatterExample.Serialize (model); 16 | var outModel = BinaryFormatterExample.Deserialize (aFileName); 17 | 18 | Assert.AreEqual ("Hello", outModel.MyField); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Security/RSAEncryptionExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Security; 4 | 5 | namespace AssembliesReflectionSecurity.Security.Tests 6 | { 7 | [TestFixture ()] 8 | public class RSAEncryptionExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var aString = "This is a string"; 14 | using (var sut = new RSAEncryptionExample ()) { 15 | var encrypted = sut.Encrypt (aString); 16 | var decrypted = sut.Decrypt (encrypted); 17 | Assert.AreEqual (aString, decrypted); 18 | } 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/SerializeEventsExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.Serialization; 3 | 4 | namespace Advanced.Serialization 5 | { 6 | [Serializable] 7 | public class SerializeEventsExample 8 | { 9 | public bool OnSerializingFire { get; set; } 10 | 11 | public bool OnDeserializedFire { get; set; } 12 | 13 | [OnSerializing] 14 | private void OnSerializing (StreamingContext context) 15 | { 16 | OnSerializingFire = true; 17 | } 18 | 19 | [OnDeserialized] 20 | private void OnDeserialized (StreamingContext context) 21 | { 22 | OnDeserializedFire = true; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/TransactionsExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace ADO.ConnectedLayer.Tests 5 | { 6 | [TestFixture ()] 7 | public class TransactionsExampleTests 8 | { 9 | [Test ()] 10 | public void TestWithTry () 11 | { 12 | var sut = new TransactionsExample (); 13 | sut.WithTry (); 14 | 15 | Assert.IsTrue (sut.IsHit); 16 | } 17 | 18 | [Test ()] 19 | [ExpectedException] 20 | public void TestWithUsing () 21 | { 22 | var sut = new TransactionsExample (); 23 | sut.WithUsing (); 24 | 25 | Assert.IsFalse (sut.IsHit); 26 | } 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/StringReaderWriterExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Advanced.Streams; 4 | using NUnit.Framework; 5 | 6 | namespace Advanced.Streams.Tests 7 | { 8 | [TestFixture ()] 9 | public class StringReaderWriterExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var strings = new List (){ "1", "2", "3", "4", "5" }; 15 | 16 | var outString = StringReaderWriterExample.WriteData (strings); 17 | var outStrings = StringReaderWriterExample.ReadData (outString); 18 | 19 | Assert.AreEqual (strings, outStrings); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Assemblies/ConfigurationManagerExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Assembilies; 4 | 5 | namespace AssembliesReflectionSecurity.Assembilies.Tests 6 | { 7 | [TestFixture ()] 8 | public class ConfigurationManagerExampleTests 9 | { 10 | [Test ()] 11 | public void TestIterCount () 12 | { 13 | Assert.AreEqual (2, ConfigurationManagerExample.GetIterCount ()); 14 | } 15 | 16 | [Test ()] 17 | public void TestValuesCount () 18 | { 19 | Assert.AreEqual (1, ConfigurationManagerExample.GetValuesCount ()); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ConcurrentCollections/ConcurrentStackExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ConcurrentCollections.Tests 5 | { 6 | [TestFixture ()] 7 | public class ConcurrentStackExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new ConcurrentStackExample (); 13 | sut.Example (); 14 | 15 | Assert.AreEqual (10, sut.Take); 16 | } 17 | 18 | [Test ()] 19 | public void TestCaseTwo () 20 | { 21 | var sut = new ConcurrentStackExample (); 22 | Assert.AreEqual(2, sut.ConcurrentStackExampleRange ()); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/StopWatchExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Text; 4 | using System.Threading; 5 | 6 | namespace TestingMoqingDebugging.Debugging 7 | { 8 | public class StopwatchExample 9 | { 10 | public static TimeSpan Example () 11 | { 12 | 13 | Stopwatch sw = new Stopwatch (); 14 | sw.Start (); 15 | sw.Stop (); 16 | sw.Reset (); 17 | sw.Start (); 18 | Thread.Sleep (1); 19 | sw.Stop (); 20 | return sw.Elapsed; 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ProcessAppDomains/ProcessExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ProcessAppDomains.Tests 5 | { 6 | [TestFixture ()] 7 | public class ProcessExampleTests 8 | { 9 | [Test ()] 10 | public void TestGetRunningProcessWithLocal () 11 | { 12 | Assert.Greater (ProcessExample.GetRunningProcesses (string.Empty, string.Empty).Length, 0); 13 | } 14 | 15 | [Test ()] 16 | public void TestGetRunningProcessWithComputerName () 17 | { 18 | Assert.Greater (ProcessExample.GetRunningProcesses (string.Empty, Environment.MachineName).Length, 0); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/ThreadStaticLocalExampleTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ThreadSynchronization.Tests 5 | { 6 | [TestFixture ()] 7 | public class ThreadStaticLocalExampleTest 8 | { 9 | [Test ()] 10 | public void TestThreadStatic () 11 | { 12 | var sut = new ThreadStaticLocalExample (); 13 | 14 | Assert.AreEqual(0, sut.DoThreadStatic ()); 15 | } 16 | 17 | [Test ()] 18 | public void TestThreadLocal () 19 | { 20 | var sut = new ThreadStaticLocalExample (); 21 | 22 | Assert.AreEqual(0, sut.DoThreadLocal ()); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/NInject/BindToMethodTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using Ninject; 4 | using TestingMoqingDebugging.NInject; 5 | 6 | namespace TestingMoqingDebugging.NInject.Tests 7 | { 8 | [TestFixture()] 9 | public class BindToMethodTest 10 | { 11 | [Test()] 12 | public void CanBindToMethod () 13 | { 14 | var kernel = new StandardKernel(); 15 | kernel.Bind().ToMethod( x => new KnownC()); 16 | 17 | var aClass = kernel.Get(); 18 | 19 | Assert.IsInstanceOfType (typeof(IClass), aClass); 20 | Assert.IsInstanceOfType (typeof(KnownC), aClass); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary/test-results/{FB64ACE2-B21D-40FE-AE2F-756F444DF384}-default-2013-02-24.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 2013-02-24T19:33:53 6 | 11 7 | 0 8 | 0 9 | 0 10 | 0 11 | 0 12 | 0 13 | 15 | 16 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/test-results/{C01004A0-14BA-4D08-8330-323851FD161D}-default-2013-02-24.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 2013-02-24T20:12:59 6 | 4 7 | 0 8 | 0 9 | 0 10 | 0 11 | 0 12 | 0 13 | 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/JavaScriptSerializerExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Web.Script.Serialization; 4 | 5 | namespace Advanced.Serialization 6 | { 7 | public class JavaScriptSerializerExample 8 | { 9 | public static string Serialize (List models) 10 | { 11 | var serializer = new JavaScriptSerializer (); 12 | return serializer.Serialize (models); 13 | } 14 | 15 | public static List Deserialize (string serializedResult) 16 | { 17 | var serializer = new JavaScriptSerializer (); 18 | return serializer.Deserialize> (serializedResult); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/DataContractSerializerExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Serialization; 4 | 5 | namespace Advanced.Serialization.Tests 6 | { 7 | [TestFixture ()] 8 | public class DataContractSerializerExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var model = new MyModelDC (){ AnInt = 1, AString = "A", ABool = true }; 14 | 15 | var aFileName = DataContractSerializerExample.WriteObject (model); 16 | var outModel = DataContractSerializerExample.ReadObject (aFileName); 17 | 18 | Assert.AreEqual (model, outModel); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/Interfaces/ISimpleClass.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // Copyright (c) ThereBNone 3 | // Luke Wickstead 4 | namespace NinjectExample.Interfaces 5 | { 6 | using System; 7 | 8 | /// 9 | /// I simple class. 10 | /// 11 | public interface ISimpleClass 12 | { 13 | /// 14 | /// Whos the am i. 15 | /// 16 | /// 17 | /// The am i. 18 | /// 19 | string WhoAmI(); 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/NInject/BindToConstructorTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using Ninject; 4 | using TestingMoqingDebugging.NInject; 5 | 6 | namespace TestingMoqingDebugging.NInject.Tests 7 | { 8 | [TestFixture()] 9 | public class BindToConstructorTest 10 | { 11 | [Test()] 12 | public void CanBindToConstructor () 13 | { 14 | var kernel = new StandardKernel(); 15 | kernel.Bind().ToConstructor( x => new KnownC()); 16 | 17 | var aClass = kernel.Get(); 18 | 19 | Assert.IsInstanceOfType (typeof(IClass), aClass); 20 | Assert.IsInstanceOfType (typeof(KnownC), aClass); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/Debugging/PerformanceEncounterCustomExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using TestingMoqingDebugging.Debugging; 4 | 5 | namespace TestingMoqingDebugging.Debugging.Tests 6 | { 7 | [TestFixture ()] 8 | public class PerformanceEncounterCustomExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new PerformanceEncounterCustomExample (); 14 | sut.WriteCounters (); 15 | 16 | var hit = 0L; 17 | var rate = 0L; 18 | 19 | sut.ReadCounters (out hit, out rate); 20 | 21 | Assert.GreaterOrEqual (hit, 5); 22 | Assert.GreaterOrEqual (rate, 0); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/NInject/AutoSelfBindTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | using NUnit.Framework; 4 | using TestingMoqingDebugging.NInject; 5 | 6 | namespace TestingMoqingDebugging.NInject.Tests 7 | { 8 | /// 9 | /// Auto self bind test: shows that classes are self bound implicitly 10 | /// 11 | [TestFixture()] 12 | public class AutoSelfBindTest 13 | { 14 | [Test()] 15 | public void CanAutoSelfBind () 16 | { 17 | IKernel aKernel = new StandardKernel(); 18 | 19 | var aClass = aKernel.Get(); 20 | 21 | Assert.IsInstanceOfType(typeof(AuoSelfBindExample), aClass); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Stubs/ASimpleStub.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System; 4 | using NUnit.Framework; 5 | using Rhino.Mocks; 6 | 7 | [TestFixture] 8 | public class ASimpleStub 9 | { 10 | private ISimpleModel sut; 11 | 12 | public ASimpleStub() 13 | { 14 | this.sut = MockRepository.GenerateStub(); 15 | this.sut.Stub(x => x.Do()).Return(1); 16 | } 17 | 18 | [Test] 19 | public void WhenSimple() 20 | { 21 | Assert.That(this.sut.Do().Equals(1)); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/ADO/DisconnectedLayer/RowVersionExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Data; 3 | using System.Data.Common; 4 | using System.Configuration; 5 | 6 | namespace ADO.DisconnectedLayer 7 | { 8 | public class RowVersionExample 9 | { 10 | public static bool Example () 11 | { 12 | var Reader = new DataTableReaderExample (); 13 | 14 | var aDataTable = Reader.Table; 15 | 16 | var originalValue = (string)aDataTable.Rows [0]["StringField"]; 17 | aDataTable.Rows [0] ["StringField"] = "New Value"; 18 | 19 | var aValue = (string)aDataTable.Rows [0] ["StringField", DataRowVersion.Original]; 20 | 21 | return aValue == originalValue; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/NInject/ContextualBindingTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using Ninject; 4 | using TestingMoqingDebugging.NInject; 5 | 6 | namespace TestingMoqingDebugging.NInject.Tests 7 | { 8 | [TestFixture()] 9 | public class ContextualBindingTest 10 | { 11 | [Test()] 12 | public void TestCaseTwo () 13 | { 14 | var kernel = new StandardKernel (new ContextualBindingModule ()); 15 | 16 | var childA = kernel.Get (); 17 | var childB = kernel.Get (); 18 | 19 | Assert.IsInstanceOfType (typeof(InjectA), childA.Inject); 20 | Assert.IsInstanceOfType (typeof(InjectB), childB.Inject); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/Connections/ConfigurationManagerExampleADOTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace ADO.Connections.Tests 5 | { 6 | [TestFixture ()] 7 | public class ConfigurationManagerExampleADOTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | string connection; 13 | string provider; 14 | 15 | ConfigurationManagerExampleADO.GetConnectionString (out connection, out provider); 16 | 17 | Assert.IsTrue (connection.Contains("localhost")); 18 | Assert.IsTrue (connection.Contains("AdminUser")); 19 | Assert.IsTrue (connection.Contains("MyDatabase")); 20 | Assert.IsTrue( provider.Contains("MySql")); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Stubs/ArgumentConstraints/IgnoreArguments.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System; 4 | using NUnit.Framework; 5 | using Rhino.Mocks; 6 | 7 | [TestFixture] 8 | public class IgnoreArguments 9 | { 10 | [Test] 11 | public void IgnoreArgumentsTest() 12 | { 13 | var sut = MockRepository.GenerateStub(); 14 | sut.Stub(x => x.Do(Arg.Is.Equal(1))).IgnoreArguments().Return(1); 15 | 16 | Assert.That(sut.Do(10).Equals(1)); 17 | Assert.That(sut.Do(-10).Equals(1)); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /DetailedExamples/AppDomainEvents/AppDomainEvents.5.1.ReSharper.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | False 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Never 23 | 24 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Attributes/AnnotatedClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.Attributes 4 | { 5 | [Serializable] 6 | [Implode (true, false)] 7 | public class AnnotatedClass 8 | { 9 | [NonSerialized, Obsolete ("Don’t go there!!")] 10 | public string AProperty; 11 | [NonSerialized] [Obsolete ("Don’t go there!!")] 12 | public string AnotherProperty; 13 | 14 | [Obsolete ("Don’t go there!!")] 15 | public void MyMethod () 16 | { 17 | } 18 | 19 | [Implode (true, false)] 20 | public void TheMethod () 21 | { 22 | // Attributes are simply classes; you invoke constructors on them. 23 | // Named parameters and object initializers can be used. 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/ExampleISerializable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.Serialization; 3 | 4 | namespace Advanced.Serialization 5 | { 6 | [Serializable] 7 | public class ExampleISerializable : ISerializable 8 | { 9 | public ExampleISerializable () 10 | { 11 | } 12 | 13 | public string MyField { get; set; } 14 | 15 | protected ExampleISerializable (SerializationInfo info, StreamingContext ctx) 16 | { 17 | MyField = (string)info.GetValue ("MyField", typeof(string)); 18 | } 19 | 20 | public void GetObjectData (SerializationInfo info, StreamingContext context) 21 | { 22 | info.AddValue ("MyField", MyField, typeof(string)); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/ExampleClasses/PropertyAndMethodInjectionExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class PropertyAndMethodInjectionExample 7 | { 8 | public bool IsMethodInjected { get; private set; } 9 | public bool IsPropertyInjected { get; private set; } 10 | 11 | public PropertyAndMethodInjectionExample () 12 | { 13 | } 14 | 15 | [Inject] 16 | public void InjectionMethod( KnownC c ) 17 | { 18 | IsMethodInjected = true; 19 | } 20 | 21 | 22 | [Inject] 23 | public KnownC InjectionProperty 24 | { 25 | set { IsPropertyInjected = true; } 26 | } 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/ADO/DisconnectedLayer/DataViewExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using ADO.DisconnectedLayer; 4 | 5 | namespace ADO.DisconnectedLayer.Tests 6 | { 7 | [TestFixture ()] 8 | public class DataViewExampleTests 9 | { 10 | [Test ()] 11 | public void TestExampleEquals () 12 | { 13 | var sut = new DataViewExample (); 14 | sut.ExampleEquals (); 15 | 16 | Assert.AreEqual (1, sut.DV.Count); 17 | } 18 | 19 | 20 | [Test ()] 21 | public void TestExampleGreaterThan () 22 | { 23 | var sut = new DataViewExample (); 24 | sut.ExampleGreaterThan (); 25 | 26 | Assert.AreEqual (sut.DT.Rows.Count -1, sut.DV.Count); 27 | } 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ProcessAppDomains/ContextBoundObjectExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using System.Threading; 4 | 5 | namespace MultiThreading.ProcessAppDomains.Tests 6 | { 7 | [TestFixture ()] 8 | public class ContextBoundObjectExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var context = Thread.CurrentContext; 14 | var contextId = context.ContextID; 15 | var contextProperties = context.ContextProperties; 16 | 17 | Assert.IsNotNull (context); 18 | Assert.GreaterOrEqual (0, contextId); 19 | 20 | foreach (var prop in contextProperties) { 21 | Assert.IsNotEmpty (prop.Name); 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/Interfaces/IClassWithConstructorParameters.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // Copyright (c) ThereBNone 3 | // Luke Wickstead 4 | namespace NinjectExample.Interfaces 5 | { 6 | using System; 7 | 8 | /// 9 | /// I class with constructor parameters. 10 | /// 11 | public interface IClassWithConstructorParameters 12 | { 13 | /// 14 | /// Whos the am i. 15 | /// 16 | /// I dentifier 17 | string WhoAmI(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/AdvancedFeatures/CheckedUncheckedAdder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.AdvancedFeatures 4 | { 5 | public class CheckedUncheckedAdder 6 | { 7 | public static int IncrementWithCheckedRegion (int input) 8 | { 9 | checked { 10 | return ++input; 11 | } 12 | } 13 | 14 | public static int IncrementWithCheckedFunction(int input) 15 | { 16 | return checked (++input); 17 | } 18 | 19 | 20 | public static int IncrementWithUncheckedRegion (int input) 21 | { 22 | unchecked { 23 | return ++input; 24 | } 25 | } 26 | 27 | public static int IncrementWithUncheckedFunction(int input) 28 | { 29 | return unchecked (++input); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Security/HashingExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.Security.Cryptography; 6 | using System.Linq; 7 | 8 | namespace AssembliesReflectionSecurity.Security 9 | { 10 | public class ToHash 11 | { 12 | public string FieldString { get; set; } 13 | 14 | public int FieldInt { get; set; } 15 | 16 | public bool FieldBool { get; set; } 17 | 18 | public decimal FieldDecimal { get; set; } 19 | 20 | public override int GetHashCode () 21 | { 22 | return string.Format ("{0}-{1}-{2}-{3}", FieldString, FieldInt, FieldBool, FieldDecimal).GetHashCode (); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/App.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/DriveInfoExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using NUnit.Framework; 3 | 4 | namespace Advanced.Streams.Tests 5 | { 6 | [TestFixture()] 7 | public class DriveInfoExampleTests 8 | { 9 | [Test()] 10 | public void TestDriveInfo () 11 | { 12 | DriveInfo[] drives = DriveInfo.GetDrives(); 13 | 14 | Assert.IsNotEmpty (drives); 15 | Assert.IsNotEmpty (drives[0].Name); 16 | Assert.IsNotEmpty (drives[0].DriveType.ToString()); 17 | Assert.IsNotEmpty (drives[0].IsReady.ToString()); 18 | Assert.IsNotEmpty (drives[0].TotalFreeSpace.ToString()); 19 | Assert.IsNotEmpty (drives[0].DriveFormat); 20 | Assert.IsNotEmpty (drives[0].VolumeLabel); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/MyModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Advanced.Serialization 4 | { 5 | [Serializable] 6 | public class MyModel 7 | { 8 | public int AnInt { get; set; } 9 | 10 | public string AString { get; set; } 11 | 12 | public bool ABool { get; set; } 13 | 14 | [NonSerialized] 15 | public string NonSerializedField; 16 | 17 | public override bool Equals (object obj) 18 | { 19 | var otherModel = (MyModel)obj; 20 | 21 | return ABool.Equals (otherModel.ABool) && 22 | AnInt.Equals (otherModel.AnInt) && 23 | AString.Equals (otherModel.AString); 24 | } 25 | 26 | public override int GetHashCode () 27 | { 28 | return base.GetHashCode (); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Debug/App.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/bin/Release/App.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Stubs/LiteralExample.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Rhino.Mocks; 4 | 5 | namespace TestingMoqingDebugging.RhinoMocks.Tests 6 | { 7 | [TestFixture ()] 8 | public class LiteralExample 9 | { 10 | private ISimpleModel sut; 11 | 12 | public LiteralExample() 13 | { 14 | this.sut = MockRepository.GenerateStub(); 15 | this.sut.Stub(x => x.Do(1)).Return(1); 16 | this.sut.Stub(x => x.Do("Foo")).Return(2); 17 | } 18 | 19 | [Test ()] 20 | public void TestCase () 21 | { 22 | 23 | Assert.AreEqual (0, sut.Do ("Moo")); 24 | Assert.AreEqual (1, sut.Do (1)); 25 | Assert.AreEqual (2, sut.Do ("Foo")); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Assemblies/AppSettingsReaderExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Assembilies; 4 | 5 | namespace AssembliesReflectionSecurity.Assembilies.Tests 6 | { 7 | [TestFixture ()] 8 | public class AppSettingsReaderExampleTests 9 | { 10 | [Test ()] 11 | public void TestGetString () 12 | { 13 | var aValue = AppSettingsReaderExample.GetAppSettingValue ("TheString"); 14 | Assert.AreEqual ("AString", aValue); 15 | } 16 | 17 | [Test ()] 18 | public void TestGetInt () 19 | { 20 | var aValue = AppSettingsReaderExample.GetAppSettingValue ("TheInt"); 21 | Assert.AreEqual (1, aValue); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ConcurrentCollections/BlockingCollectionExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace MultiThreading.ConcurrentCollections.Tests 5 | { 6 | [TestFixture ()] 7 | public class BlockingCollectionExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var sut = new BlockingCollectionExample (); 13 | 14 | var result = sut.Run (); 15 | 16 | Assert.AreEqual (10, result); 17 | } 18 | 19 | [Test ()] 20 | public void TestGetConsumingEnumerablexample () 21 | { 22 | var sut = new BlockingCollectionExample (); 23 | 24 | var result = sut.ConsumingEnumerablexample (); 25 | 26 | Assert.AreEqual (10, result); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/AsyncExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.Spawning; 4 | using System.Threading; 5 | 6 | namespace MultiThreading.Spawning.Tests 7 | { 8 | [TestFixture ()] 9 | public class AsyncExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var sut = new AsyncExample (); 15 | var result = sut.RunWithReturn (); 16 | 17 | Thread.Sleep (1); 18 | 19 | Assert.IsTrue (result.Result); 20 | } 21 | 22 | [Test ()] 23 | public void TestCaseNo () 24 | { 25 | var sut = new AsyncExample (); 26 | sut.RunNoReturn (); 27 | 28 | Thread.Sleep (10); 29 | 30 | Assert.IsTrue (sut.IsSet); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Debug/App.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/bin/Release/App.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/MyModelDC.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.Serialization; 2 | 3 | namespace Advanced.Serialization 4 | { 5 | [DataContract] public class MyModelDC 6 | { 7 | [DataMember] 8 | public int AnInt { get; set; } 9 | 10 | [DataMember] 11 | public string AString { get; set; } 12 | 13 | [DataMember] 14 | public bool ABool { get; set; } 15 | 16 | public override bool Equals (object obj) 17 | { 18 | var otherModel = (MyModelDC)obj; 19 | 20 | return ABool.Equals (otherModel.ABool) && 21 | AnInt.Equals (otherModel.AnInt) && 22 | AString.Equals (otherModel.AString); 23 | } 24 | 25 | public override int GetHashCode () 26 | { 27 | return base.GetHashCode (); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Serialization/SerializeEventsExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | 4 | namespace Advanced.Serialization.Tests 5 | { 6 | [TestFixture ()] 7 | public class SerializeEventsExampleTests 8 | { 9 | [Test ()] 10 | public void TestCase () 11 | { 12 | var model = new SerializeEventsExample (); 13 | 14 | var aFileName = BinaryFormatterExample.Serialize (model); 15 | var outModel = BinaryFormatterExample.Deserialize (aFileName); 16 | 17 | Assert.IsFalse (model.OnDeserializedFire); 18 | Assert.IsTrue (model.OnSerializingFire); 19 | 20 | Assert.IsTrue (outModel.OnSerializingFire); 21 | Assert.IsTrue (outModel.OnDeserializedFire); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Stubs/ArgumentConstraints/MatchesConstraints.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System; 4 | using NUnit.Framework; 5 | using Rhino.Mocks; 6 | 7 | [TestFixture] 8 | public class MatchesConstraints 9 | { 10 | [Test] 11 | public void IsMatching() 12 | { 13 | var sut = MockRepository.GenerateStub(); 14 | sut.Stub(x => x.Do(Arg.Matches(y => y > 5))).Return(1); 15 | sut.Stub(x => x.Do(Arg.Matches(y => y <= 5))).Return(0); 16 | 17 | Assert.That(sut.Do(4).Equals(0)); 18 | Assert.That(sut.Do(6).Equals(1)); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Generics/SerialisationTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using Advanced.Generics; 4 | 5 | namespace Advanced.Generics.Tests 6 | { 7 | [TestFixture ()] 8 | public class SerialisationTests 9 | { 10 | [Test ()] 11 | public void CanSerialiseAndDeserialise () 12 | { 13 | // Arrange 14 | var sampleClass = new SampleClass (){ Name = "Foo!" }; 15 | var serializedString = Serializer.Serialize (sampleClass); 16 | 17 | // Act 18 | var deserializedClass = Serializer.DeSerialize (serializedString); 19 | 20 | // Assert 21 | Assert.IsInstanceOfType (typeof(SampleClass), deserializedClass); 22 | Assert.AreEqual (deserializedClass.Name, sampleClass.Name); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/NInject/DataModel/TestClasses/NestedResolve.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Ninject; 3 | 4 | namespace TestingMoqingDebugging.NInject 5 | { 6 | public class Outter 7 | { 8 | [Inject] 9 | public Middle PropertyInject{ get; set; } 10 | 11 | public Middle ConstructorArgInject { get; set; } 12 | 13 | public Outter (Middle middle) 14 | { 15 | ConstructorArgInject = middle; 16 | } 17 | } 18 | 19 | public class Middle 20 | { 21 | [Inject] 22 | public Inner PropertyInject{ get; set; } 23 | 24 | public Inner ConstructorArgInject { get; set; } 25 | 26 | public Middle (Inner middle) 27 | { 28 | ConstructorArgInject = middle; 29 | } 30 | } 31 | 32 | public class Inner 33 | { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ProcessAppDomains/SimpleAppDomainExampleTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using NUnit.Framework; 4 | 5 | namespace MultiThreading.ProcessAppDomains.Tests 6 | { 7 | [TestFixture ()] 8 | public class SimpleAppDomainExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | AppDomain currentDomain = AppDomain.CurrentDomain; 14 | 15 | Assert.Greater(currentDomain.Id, 0); 16 | Assert.IsFalse(currentDomain.IsDefaultAppDomain()); 17 | Assert.IsTrue(currentDomain.FriendlyName.Contains("DotNetExamplesTests")); 18 | Assert.IsTrue(currentDomain.BaseDirectory.Contains("DotNetExamplesTests")); 19 | Assert.Greater(currentDomain.GetAssemblies ().Length, 0 ); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/RhinoMocks/Model/ModelRepository.cs: -------------------------------------------------------------------------------- 1 | namespace TestingMoqingDebugging.RhinoMocks.Tests 2 | { 3 | using System.Collections.Generic; 4 | 5 | public class ModelRepository : IModelRepository 6 | { 7 | public bool IsMock { get; private set; } 8 | 9 | public int ModelCount { get; private set; } 10 | 11 | public void Add(AnotherModel theModel) 12 | { 13 | this.ModelCount++; 14 | } 15 | 16 | public void Remove(AnotherModel theModel) 17 | { 18 | this.ModelCount++; 19 | } 20 | 21 | public IEnumerable GetModels() 22 | { 23 | return new List(); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/CustomCompilerDirectivesExample.cs: -------------------------------------------------------------------------------- 1 | #define TRACE 2 | //#define DEBUG 3 | #undef DEBUG 4 | using System; 5 | 6 | namespace TestingMoqingDebugging.Debugging 7 | { 8 | public class CustomCompilerDirectivesExample 9 | { 10 | public bool HitOne { get; private set; } 11 | 12 | public bool HitTwo { get; private set; } 13 | 14 | public bool HitThree { get; private set; } 15 | 16 | public CustomCompilerDirectivesExample () 17 | { 18 | #if TRACE 19 | HitOne = true; 20 | Console.WriteLine ("Custom symbol is defined"); 21 | #endif 22 | 23 | #if (DEBUG) 24 | HitTwo = false; 25 | #endif 26 | 27 | #if (TRACE || DEBUG) 28 | HitThree = true; 29 | #endif 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Security/SHA256ExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Security; 4 | 5 | namespace AssembliesReflectionSecurity.Security.Tests 6 | { 7 | [TestFixture ()] 8 | public class SHA256ExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var aString = "This is a string"; 14 | var anotherString = "This is another string"; 15 | 16 | var encryptedOne = SHA256Example.Hash (aString); 17 | var encryptedTwo = SHA256Example.Hash (aString); 18 | var encryptedThree = SHA256Example.Hash (anotherString); 19 | 20 | Assert.AreEqual (encryptedOne, encryptedTwo); 21 | Assert.AreNotEqual (encryptedOne, encryptedThree); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day4RhinoMocksExample/RhinoMocksExampleTests/RhinoMocksExampleTests.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/TestingMoqingDebugging/NInject/BindToConstantTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | using Ninject; 4 | using TestingMoqingDebugging.NInject; 5 | 6 | namespace TestingMoqingDebugging.NInject.Tests 7 | { 8 | [TestFixture()] 9 | public class BindToConstantTest 10 | { 11 | [Test()] 12 | public void CanBindToConstant () 13 | { 14 | var kernel = new StandardKernel(); 15 | var firstKnownC = new KnownC(); 16 | 17 | kernel.Bind().ToConstant( firstKnownC); 18 | 19 | var secondKnownC = kernel.Get(); 20 | 21 | Assert.IsInstanceOfType (typeof(IClass), secondKnownC); 22 | Assert.IsInstanceOfType (typeof(KnownC), secondKnownC); 23 | Assert.AreSame (secondKnownC, firstKnownC); 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/Interfaces/IClassWithDependancy.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // Copyright (c) ThereBNone 3 | // Luke Wickstead 4 | namespace NinjectExample.Interfaces 5 | { 6 | using System; 7 | 8 | /// 9 | /// I class with dependancy. 10 | /// 11 | public interface IClassWithDependancy 12 | { 13 | /// Gets the simple class 14 | /// The simple class. 15 | ISimpleClass SimpleClass { get; } 16 | 17 | /// Whos the am i. 18 | /// I dentifer 19 | string WhoAmI(); 20 | } 21 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/Models/SimpleClass.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // Copyright (c) ThereBNone 3 | // Luke Wickstead 4 | namespace NinjectExample.Models 5 | { 6 | using System; 7 | using NinjectExample.Interfaces; 8 | 9 | /// 10 | /// Simple class. 11 | /// 12 | public class SimpleClass : ISimpleClass 13 | { 14 | /// 15 | /// Whos the am i. 16 | /// 17 | /// 18 | /// The am i. 19 | /// 20 | public string WhoAmI() 21 | { 22 | return "SimpleClass"; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day3NinjectExample/NinjectExample/NinjectExample/Models/SimpleClassAlso.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // Copyright (c) ThereBNone 3 | // Luke Wickstead 4 | namespace NinjectExample.Models 5 | { 6 | using System; 7 | using NinjectExample.Interfaces; 8 | 9 | /// 10 | /// Simple class also. 11 | /// 12 | public class SimpleClassAlso : ISimpleClass 13 | { 14 | /// 15 | /// Whos the am i. 16 | /// 17 | /// 18 | /// The am i. 19 | /// 20 | public string WhoAmI() 21 | { 22 | return "SimpleClassAlso"; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/MultiThreading/ThreadSynchronization/LockRegion.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace MultiThreading.ThreadSynchronization 5 | { 6 | public class LockRegion 7 | { 8 | private System.Object lockControl = new System.Object (); 9 | 10 | public int Counter { get; private set; } 11 | 12 | public LockRegion () 13 | { 14 | var aThread = new Thread (new ThreadStart (OtherThreadMethod)); 15 | 16 | aThread.Start (); 17 | Thread.Sleep (10); 18 | 19 | AMethod (); 20 | } 21 | 22 | private void AMethod () 23 | { 24 | lock (lockControl) { 25 | Counter++; 26 | Thread.Sleep (10); 27 | } 28 | } 29 | 30 | void OtherThreadMethod () 31 | { 32 | Thread.Sleep (1); 33 | AMethod (); 34 | Thread.Sleep (1); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/Advanced/Streams/FileSystemWatcherExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using Advanced.Streams; 4 | using System.Threading; 5 | 6 | namespace Advanced.Streams.Tests 7 | { 8 | [TestFixture ()] 9 | public class FileSystemWatcherExampleTests 10 | { 11 | [Test ()] 12 | public void TestCase () 13 | { 14 | var watcher = new FileSystemWatcherExample (); 15 | 16 | var aFileName = watcher.AddFile (); 17 | Thread.Sleep (10); 18 | 19 | watcher.AddFile (); 20 | Thread.Sleep (10); 21 | 22 | watcher.AddFile (); 23 | Thread.Sleep (10); 24 | 25 | watcher.RenameFile (aFileName); 26 | Thread.Sleep (10); 27 | 28 | 29 | Assert.AreEqual (3, watcher.OnChangedCount); 30 | Assert.AreEqual (1, watcher.OnRenamedCount); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Generics/Examples.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | 5 | namespace Advanced.Generics 6 | { 7 | public class GenericsClass 8 | { 9 | public T value { get; private set; } 10 | 11 | public GenericsClass (T t) 12 | { 13 | this.value = t; 14 | } 15 | 16 | public void Set (T t) 17 | { 18 | value = t; 19 | } 20 | } 21 | 22 | public class Base 23 | { 24 | } 25 | 26 | public class Test< K, V > where K : struct where V : Base, new() 27 | { 28 | public V foo; 29 | 30 | public void Do (X first, Y second) where Y : X 31 | { 32 | } 33 | } 34 | 35 | public class SampleClass< T, K, V > where T : V 36 | { 37 | public SampleClass( T t, K k, V v ) 38 | { 39 | 40 | } 41 | 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/ADO/DisconnectedLayer/DataViewExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Data; 3 | 4 | namespace ADO.DisconnectedLayer 5 | { 6 | public class DataViewExample 7 | { 8 | public DataView DV; 9 | public DataTable DT; 10 | public DataTableReaderExample Reader; 11 | 12 | public DataViewExample () 13 | { 14 | Reader = new DataTableReaderExample (); 15 | DT = Reader.Table; 16 | DV = new DataView (DT); 17 | } 18 | 19 | public void ExampleEquals () 20 | { 21 | int minId = (int)DT.Rows [0] [0]; 22 | DV.RowFilter = string.Format ("idAnotherTable>{0}", minId); 23 | } 24 | 25 | public void ExampleGreaterThan () 26 | { 27 | var firstString = DT.Rows [0] [1]; 28 | 29 | DV.RowFilter = string.Format ("StringField ='{0}'", firstString); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/SoapFormatterExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Runtime.Serialization.Formatters.Soap; 4 | 5 | namespace Advanced.Serialization 6 | { 7 | public class SoapFormatterExample 8 | { 9 | public static string Serialize (T model) 10 | { 11 | var aFileName = Path.GetTempFileName (); 12 | 13 | using (var fs = new FileStream (aFileName, FileMode.Create)) { 14 | 15 | var ser = new SoapFormatter (); 16 | ser.Serialize (fs, model); 17 | } 18 | 19 | return aFileName; 20 | } 21 | 22 | public static T Deserialize (string aFileName) 23 | { 24 | using (Stream fs = File.OpenRead (aFileName)) { 25 | var ser = new SoapFormatter (); 26 | return (T)ser.Deserialize (fs); 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/ThreadSynchronization/MonitorExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using System.Threading; 4 | 5 | namespace MultiThreading.ThreadSynchronization.Tests 6 | { 7 | [TestFixture ()] 8 | public class MonitorExampleTests 9 | { 10 | [Test ()] 11 | //[ExpectedException(typeof(SynchronizationLockException))] 12 | public void TestEnterExample () 13 | { 14 | var sut = new MonitorExample (); 15 | 16 | sut.EnterExample (); 17 | 18 | Assert.AreEqual (2, sut.Counter); 19 | } 20 | 21 | [Test ()] 22 | [ExpectedException(typeof(SynchronizationLockException))] 23 | public void TestTryEnterExampple () 24 | { 25 | var sut = new MonitorExample (); 26 | sut.TryEnterExampple (); 27 | Assert.AreEqual (1, sut.Counter); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /DetailedExamples/TheConsole/TheConsole/HelloFriend.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TheConsole 4 | { 5 | public class HelloFriend 6 | { 7 | public static void Main (string[] args) 8 | { 9 | Console.WriteLine ("Hello: {0}", Environment.UserName); 10 | Console.WriteLine ("Would you like to list some information about your computer? (y/n)"); 11 | 12 | string inputString = Console.ReadLine (); 13 | 14 | if (inputString.Equals ("y", StringComparison.InvariantCultureIgnoreCase)) { 15 | DisplayInfo (); 16 | } 17 | } 18 | 19 | private static void DisplayInfo () 20 | { 21 | Console.WriteLine ("OS: {0}", Environment.OSVersion); 22 | 23 | Console.WriteLine ("Drives:"); 24 | 25 | foreach (var drive in Environment.GetLogicalDrives()) { 26 | Console.WriteLine (drive); 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/Advanced/Serialization/BinaryFormatterExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Runtime.Serialization.Formatters.Binary; 4 | 5 | namespace Advanced.Serialization 6 | { 7 | public class BinaryFormatterExample 8 | { 9 | public static string Serialize (T model) 10 | { 11 | var aFileName = Path.GetTempFileName (); 12 | 13 | using (var fs = new FileStream (aFileName, FileMode.Create)) { 14 | var bf = new BinaryFormatter (); 15 | bf.Serialize (fs, model); 16 | } 17 | 18 | return aFileName; 19 | } 20 | 21 | public static T Deserialize (string aFileName) 22 | { 23 | using (Stream fs = File.OpenRead (aFileName)) { 24 | var bf = new BinaryFormatter (); 25 | return (T)bf.Deserialize (fs); 26 | } 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day8ADOExample/ADOExample/ADO.Net&MySQL/DAL/ADOProviders/MySQLADOProviderFactory.cs: -------------------------------------------------------------------------------- 1 | using MySql.Data.MySqlClient; 2 | using System; 3 | using System.Data; 4 | 5 | namespace ADODotNetAndMySQL.DAL.ADOProviders 6 | { 7 | public class MySQLADOProviderFactory : IADODataProviderFactory 8 | { 9 | public IDbConnection GetConnection() 10 | { 11 | return new MySqlConnection(GetDBConnectionString()); 12 | } 13 | 14 | public IDbDataAdapter GetDataAdapter() 15 | { 16 | return new MySqlDataAdapter(); 17 | } 18 | 19 | public string GetDBConnectionString() 20 | { 21 | return System.Configuration.ConfigurationManager.ConnectionStrings ["DotNetOnLinux"].ConnectionString; 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/MultiThreading/Spawning/GetStringAsyncExampleTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using MultiThreading.Spawning; 4 | 5 | namespace MultiThreading.Spawning.Tests 6 | { 7 | [TestFixture ()] 8 | public class GetStringAsyncExampleTest 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var sut = new GetStringAsyncExample (); 14 | var result = sut.ReadAsyncHttpRequest (); 15 | 16 | Assert.IsTrue (result.Result.Contains ("google")); 17 | } 18 | 19 | [Test ()] 20 | public void TestCaseTwo () 21 | { 22 | var sut = new GetStringAsyncExample (); 23 | var result = sut.ExecuteMultipleRequestsInParallel (); 24 | 25 | Assert.IsTrue (result.Result.Contains ("google")); 26 | Assert.IsTrue (result.Result.Contains ("monodevelop")); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamplesTests/AssembliesReflectionSecurity/Security/SHA1ManagedExampleTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using System; 3 | using AssembliesReflectionSecurity.Security; 4 | 5 | namespace AssembliesReflectionSecurity.Security.Tests 6 | { 7 | [TestFixture ()] 8 | public class SHA1ManagedExampleTests 9 | { 10 | [Test ()] 11 | public void TestCase () 12 | { 13 | var aString = "This is a string"; 14 | var anotherString = "This is another string"; 15 | 16 | var encryptedOne = SHA1ManagedExample.HashData (aString); 17 | var encryptedTwo = SHA1ManagedExample.HashData (aString); 18 | var encryptedThree = SHA1ManagedExample.HashData (anotherString); 19 | 20 | 21 | Assert.AreEqual (encryptedOne, encryptedTwo); 22 | Assert.AreNotEqual (encryptedOne, encryptedThree); 23 | } 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/AssembliesReflectionSecurity/Reflection/DynamicLoadingExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace AssembliesReflectionSecurity.Reflection 5 | { 6 | public class DynamicLoadingExample 7 | { 8 | public static Assembly GetLoadFrom () 9 | { 10 | return Assembly.LoadFrom (@"C:\foo.dll"); 11 | } 12 | 13 | public static Assembly GetLoad () 14 | { 15 | return Assembly.Load (@"Foo, Version=1.0.0.0, PublicKeyToken=xxx, Culture=neutral"); 16 | } 17 | 18 | public static Assembly GetLoadWithAssemblyName () 19 | { 20 | return Assembly.Load ( 21 | new AssemblyName ("Foo") { 22 | Version = new Version ("1.0.0.0") 23 | }); 24 | } 25 | 26 | public static Assembly GetMSCorLibAssembly () 27 | { 28 | return Assembly.Load ("mscorlib"); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /SimpleIntroductions/Day2NUnitExample/MathsLibrary.Tests/MathsLibrary.Tests.userprefs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /DetailedExamples/DotNetExamples/DotNetExamples/TestingMoqingDebugging/Debugging/PerformanceCounterMemoryExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Collections.Generic; 4 | 5 | namespace TestingMoqingDebugging.Debugging 6 | { 7 | public class PerformanceCounterMemoryExample 8 | { 9 | public static List Example () 10 | { 11 | var data = new List (); 12 | 13 | // Various counters exist; little overlap between .NET and Mono 14 | // .NET: http://msdn.microsoft.com/en-us/library/w8f5kw2e(v=vs.110).aspx 15 | // MONO: http://www.mono-project.com/Mono_Performance_Counters 16 | 17 | using (var pCounter = new PerformanceCounter ("Mono Memory", "Total Physical Memory")) { 18 | for (var x = 0; x < 1000; x++) { 19 | data.Add (pCounter.NextValue ()); 20 | } 21 | } 22 | 23 | return data; 24 | } 25 | } 26 | } --------------------------------------------------------------------------------