Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 /// <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();
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <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();
 }
Ejemplo n.º 5
0
 public UserController(IMapper mapper, IJitService jitService, IConverter converter, IOptions <EmailOptions> emailOptions)
 {
     _mapper       = mapper;
     _jitService   = jitService;
     _converter    = converter;
     _emailOptions = emailOptions;
 }
Ejemplo n.º 6
0
 /// <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();
 }
        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);
        }
Ejemplo n.º 8
0
 public AuthenticationController(IEmailService emailService, IJitService jitService, IOptions <EmailOptions> emailOptions)
 {
     _emailService = emailService;
     _jitService   = jitService;
     _emailOptions = emailOptions;
 }
Ejemplo n.º 9
0
 public EmailService(IJitService jitService)
 {
     _jitService = jitService;
 }