public static TestAggregate FromSnapshot(TestAggregateSnapshot snapshot, ITestDependency dep) { return(new TestAggregate(snapshot.Id, dep) { Value = snapshot.Value }); }
public ChildTestActor(ITestDependency testDependency) { Instances.Add(this); TestDependency = testDependency; ContextReference = Context; Receive <Start>(s => Sender.Tell(s)); }
public Migration_003(ITestDependency testDependency) { if (testDependency == null) { throw new NullReferenceException(); } }
public HomeController(ITestDependency testDependency, IContentStorageProvider contentStorageProvider, IContentManager contentManager) { _testDependency = testDependency; _contentStorageProvider = contentStorageProvider; _contentManager = contentManager; }
public ModuleWithTwoDependencies(ITestDependency dependency, ITestDependency2 dependency2) : base("/2dependencies") { Get["/"] = _ => { return(string.Format("Data of dependencies: {0}, {1}", dependency.GetData(), dependency2.GetData())); }; }
public HomeController(ITestDependency testDependency, IContentManager contentManager, IEventNotifier eventNotifier) { _testDependency = testDependency; _contentManager = contentManager; _eventNotifier = eventNotifier; }
public HomeController(ITestDependency testDependency, IContentStorageProvider contentStorageProvider, IContentManager contentManager) { _testDependency = testDependency; _contentStorageProvider = contentStorageProvider; _contentManager = contentManager; }
public ModuleWithOneDependency(ITestDependency dependency) : base("/1dependency") { Get["/"] = _ => { return(string.Format("Data of dependency: {0}", dependency.GetData())); }; }
/// <summary> /// Initializes a new instance of the <see cref="ScannerControllerWithDependencyInjection"/> class. /// </summary> public ScannerControllerWithDependencyInjection(IChromelyLogger logger, ITestDependency dependency) { _logger = logger; _dependency = dependency; RegisterGetRequest("/scannercontroller/get1", Get1); RegisterGetRequest("/scannercontroller/get2", Get2); RegisterPostRequest("/scannercontroller/save", Save); }
public HomeController(ITestDependency testDependency, IContentManager contentManager, IEventNotifier eventNotifier) { _testDependency = testDependency; _contentManager = contentManager; _eventNotifier = eventNotifier; }
public TestSut(ITestDependency testDependency) { if (testDependency == null) { throw new ArgumentNullException("testDependency"); } this._testDependency = testDependency; }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IEventBus eventBus, ISession session) { _session = session; _testDependency = testDependency; _contentManager = contentManager; _eventBus = eventBus; }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { if (this.InnerDependency != null) { var dep = this.InnerDependency as IDisposable; if (dep != null) { dep.Dispose(); } this.InnerDependency = null; } }
public TestMessageHandler(IBus bus, ITestDependency testDependency) { if (bus == null) { throw new ArgumentNullException("bus"); } if (testDependency == null) { throw new ArgumentNullException("testDependency"); } _bus = bus; _testDependency = testDependency; }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IEventBus eventBus, IShapeFactory shapeFactory, IShapeDisplay shapeDisplay, ISession session) { _session = session; _testDependency = testDependency; _contentManager = contentManager; _eventBus = eventBus; _shapeDisplay = shapeDisplay; Shape = shapeFactory; }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IEventBus eventBus, IShapeFactory shapeFactory, IShapeDisplay shapeDisplay, ISession session) { _session = session; _testDependency = testDependency; _contentManager = contentManager; _eventBus = eventBus; _shapeDisplay = shapeDisplay; Shape = shapeFactory; }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IShapeFactory shapeFactory, ISession session, ILogger <HomeController> logger, ITagCache tagCache, IContentItemDisplayManager contentDisplay) { _session = session; _testDependency = testDependency; _contentManager = contentManager; Shape = shapeFactory; _logger = logger; _tagCache = tagCache; _contentDisplay = contentDisplay; }
public async Task Should_resolve_arguments_When_action_has_parameters() { // Arrange var arrangeObject = new TestDependency(); var expectedByType = arrangeObject; ITestDependency expectedByInterface = arrangeObject; TestDependency actualByType = null; ITestDependency actualByInterface = null; var arrangeAction = new Action <TestDependency, ITestDependency>( ( byType, byInterface) => { actualByType = byType; actualByInterface = byInterface; }); var mockServices = new Mock <IServiceProvider>(); mockServices .Setup(instance => instance.GetService(typeof(TestDependency))) .Returns(expectedByType) .Verifiable(); mockServices .Setup(instance => instance.GetService(typeof(ITestDependency))) .Returns(expectedByInterface) .Verifiable(); var arrangeServices = mockServices.Object; var arrangeInvocationContext = this.CreateInvocationContext(); var arrangeInvoker = this.CreateInvokerInstance(arrangeAction, arrangeServices); // Act await arrangeInvoker.InvokeAsync(arrangeInvocationContext, CancellationToken.None); // Assert mockServices.Verify(); Assert.Same(expectedByType, actualByType); Assert.Same(expectedByInterface, actualByInterface); }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IEventBus eventBus, IShapeFactory shapeFactory, IShapeDisplay shapeDisplay, ISession session, ILogger<HomeController> logger, ITagCache tagCache) { _session = session; _testDependency = testDependency; _contentManager = contentManager; _eventBus = eventBus; _shapeDisplay = shapeDisplay; Shape = shapeFactory; _logger = logger; _tagCache = tagCache; }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IShapeFactory shapeFactory, ISession session, ILogger <HomeController> logger, ITagCache tagCache, IContentItemDisplayManager contentDisplay, IDeferredTaskEngine processingQueue) { _deferredTaskEngine = processingQueue; _session = session; _testDependency = testDependency; _contentManager = contentManager; Shape = shapeFactory; _logger = logger; _tagCache = tagCache; _contentDisplay = contentDisplay; }
public HomeController( ITestDependency testDependency, IContentManager contentManager, IEventBus eventBus, IShapeFactory shapeFactory, IShapeDisplay shapeDisplay, ISession session, ILogger<HomeController> logger, ITagCache tagCache, IContentItemDisplayManager contentDisplay, IDeferredTaskEngine processingQueue) { _deferredTaskEngine = processingQueue; _session = session; _testDependency = testDependency; _contentManager = contentManager; _eventBus = eventBus; _shapeDisplay = shapeDisplay; Shape = shapeFactory; _logger = logger; _tagCache = tagCache; _contentDisplay = contentDisplay; }
public TestLogger(Point location = default(Point), ITestDependency dependency = null) { Name = nameof(TestLogger); Location = location; Dependency = dependency; }
public ConstructorInjectionIntent(ITestDependency testDependency) { _testDependency = testDependency; }
public void Execute(int number, ITestDependency d) { var dependencyUseResult = d.Do(number); Emit(new[] { new TestDomainEvent(dependencyUseResult, Id) }); }
public HomeController(ITestDependency testDependency) { _testDependency = testDependency; }
public TestServiceInjectedOnly(ITestDependency dep) { this.InjectedDepedency = dep; }
public TestAggregatesCommandHandler(ITestDependency testDependency) { Map <TestCommand>((c, a) => a.Execute(c.Parameter, testDependency)); Map <TestCommandB>((c, a) => a.ExecuteWithOwnedDependency(c.Parameter)); }
public TestDependent(ITestDependency dependency) { _dependency = dependency; }
public TestRemotingSerializationProviderWithParameters( ITestDependency dependency) { this.Dependency = dependency; }
public TestClassWithConstructorWithDependency(ITestDependency dependency) { Dependency = dependency; }
internal TestAggregate(string id, ITestDependency d) : base(id) { _testDependency = d; }
public TestLogic(ITestDependency dependency) { this.dependency = dependency; }
public TestObjectOneDependency(ITestDependency dependency) { Dependency = dependency; }
public TestClassWithAnUninjectableConstructor(ITestDependency dependency) { Dependency = dependency; }
public TestObjectTwoDependencies(ITestDependency dependency, ITestDependency2 dependency2) { _dependency1 = dependency; _dependency2 = dependency2; }
public CompositeDependecy(ITestDependency internalDependecy) { this.InnerDependency = internalDependecy; }
public HomeController(ITestDependency testDependency) { _testDependency = testDependency; }
public TestServiceFlavor2(ITestDependency dep, string factoryParam1) { this.InjectedDepedency = dep; this.FacotoryParam = factoryParam1; }
public TestService(ITestDependency testDependency) { }
public TestReceiver(Point location = default(Point), ITestDependency dependency = null) : base(nameof(TestReceiver)) { Location = location; Dependency = dependency; }
public TestRemotingImplementationWithParameters( ITestDependency dependency) { this.Dependency = dependency; }
public TestClassWithTwoConstructorsWithDependencies(ITestDependency dependency) { Dependency = dependency; }
public ModuleWithTwoDependencies(ITestDependency dependency, ITestDependency2 dependency2) : base("/2dependencies") { Get["/"] = _ => { return string.Format("Data of dependencies: {0}, {1}", dependency.GetData(), dependency2.GetData()); }; }
public TestClassWithTwoConstructorsWithDependencies(ITestDependency dependency, ITestSecondDependency secondDependency) { Dependency = dependency; SecondDependency = secondDependency; }
public TestListener(ITestDependency testDependency) { _testDependency = testDependency; }
public ModuleWithOneDependency(ITestDependency dependency) : base("/1dependency") { Get["/"] = _ => { return string.Format("Data of dependency: {0}", dependency.GetData()); }; }