This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Fact] | |
| public void AssertNestedInnerException() | |
| { | |
| var expectedException = new Exception(); | |
| new Action( | |
| () => | |
| { | |
| throw new InvalidOperationException("", new KeyNotFoundException("", expectedExcpetion)); | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void ConfigureLogging() | |
| { | |
| this.log = this.loggerConfiguration.CreateLogger().ForContext<DefaultBootstrapper>(); | |
| LogManager.GetLog = type => new CaliburnSerilogAdapter(this.log.ForContext(type)); | |
| LogContext.PushProperty("a", 1); | |
| this.log.Information("template", this, null, new Uri("http://google.de")); | |
| this.log.ForContext(typeof(string)).Information("template2", this, null, new Uri("http://bing.com")); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void Configure(IAppBuilder appBuilder) | |
| { | |
| this.container.RegisterSingle<ITodoRepository>(() => new TodoDatabase(this.slowness, this.todoCount)); | |
| var httpConfig = new HttpConfiguration(); | |
| httpConfig.Routes.MapHttpRoute( | |
| "DefaultApi", | |
| "{controller}/{id}", | |
| new { id = RouteParameter.Optional }); | |
| httpConfig.DependencyResolver = new SimpleInjectorDependencyResolver(this.container); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace UserManagement.Model | |
| { | |
| namespace Query | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| public class User | |
| { | |
| /// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Windows; | |
| using Caliburn.Micro; | |
| using TinyIoC; | |
| public class TinyBootstrapper : BootstrapperBase | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace DebugStringConsoleHosted | |
| { | |
| using System.IO; | |
| using System.Linq; | |
| using Common.Logging.Simple; | |
| using ScriptCs.Contracts; | |
| using ScriptCs.Engine.Roslyn; | |
| using ScriptCs.Hosting; | |
| internal class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace ConsoleHostedScriptCs | |
| { | |
| using System; | |
| using Common.Logging.Simple; | |
| using NuGet; | |
| using ScriptCs.Contracts; | |
| using ScriptCs.Engine.Roslyn; | |
| using ScriptCs.Hosting; | |
| using PackageReference = ScriptCs.PackageReference; |
NewerOlder