/// <summary> /// Initializes a new instance of <see cref="CompilationRuntime"/>. /// </summary> public CompilationRuntime() { _typeLoader = new DefaultTypeSystem(); _assemblyLoader = new AssemblyLoader(_typeLoader); _memoryManager = new MockMemoryPageManager(); _jitService = new MockJitService(); }
/// <summary> /// Initializes a new instance of the <see cref="TestRuntime"/>. /// </summary> public TestRuntime() { _memoryPageManager = new Win32MemoryPageManager(); _typeLoader = new DefaultTypeSystem(); _assemblyLoader = new AssemblyLoader(_typeLoader); _jitService = new SimpleJitService(); }
/// <summary> /// Initializes a new instance of <see cref="CompilationRuntime"/>. /// </summary> public CompilationRuntime() { this.typeLoader = new DefaultTypeSystem(); this.assemblyLoader = new AssemblyLoader(this.typeLoader); this.memoryManager = new MockMemoryPageManager(); this.jitService = new MockJitService(); }
public UserController(IMapper mapper, IJitService jitService, IConverter converter, IOptions <EmailOptions> emailOptions) { _mapper = mapper; _jitService = jitService; _converter = converter; _emailOptions = emailOptions; }
private async Task DebugAsync(IJitService test) { test.TestVoid(); var resultInt = test.TestInt(); Assert.Equal <int>(1000, resultInt); await test.TestAsync(); var asyncInt = await test.TestIntAsync(); Assert.Equal <int>(900, asyncInt); var valueAsync = await test.ValueIntAsync(); Assert.Equal <int>(1000, valueAsync); var stringBuild = await test.StringBuilderAsync(); var value = stringBuild.ToString(); Assert.Equal <string>("hello", value); }
public AuthenticationController(IEmailService emailService, IJitService jitService, IOptions <EmailOptions> emailOptions) { _emailService = emailService; _jitService = jitService; _emailOptions = emailOptions; }
public EmailService(IJitService jitService) { _jitService = jitService; }