public InterceptingComposablePartDefinitionContext() { InterceptedPartDefinition = AttributedModelServices.CreatePartDefinition(typeof(OrderProcessor), null); MockInterceptor = new Mock<IExportedValueInterceptor>(); InterceptingPartDefinition = new InterceptingComposablePartDefinition(InterceptedPartDefinition, MockInterceptor.Object); Context(); }
public void TestSetUp() { var mockInterceptor = new Mock <IExportedValueInterceptor>(); interceptedPartDefinition = AttributedModelServices.CreatePartDefinition(typeof(OrderProcessor), null); interceptingPartDefinition = new InterceptingComposablePartDefinition(interceptedPartDefinition, mockInterceptor.Object); }
public void When_calling_create_part_it_should_create_a_disposable_intercepting_part() { var mockInterceptor = new Mock<IExportedValueInterceptor>(); interceptedPartDefinition = AttributedModelServices.CreatePartDefinition(typeof(DisposablePart), null); interceptingPartDefinition = new InterceptingComposablePartDefinition(interceptedPartDefinition, mockInterceptor.Object); var part = interceptingPartDefinition.CreatePart(); part.ShouldBeOfType<DisposableInterceptingComposablePart>(); }
public void When_calling_create_part_it_should_create_a_disposable_intercepting_part() { var mockInterceptor = new Mock <IExportedValueInterceptor>(); interceptedPartDefinition = AttributedModelServices.CreatePartDefinition(typeof(DisposablePart), null); interceptingPartDefinition = new InterceptingComposablePartDefinition(interceptedPartDefinition, mockInterceptor.Object); var part = interceptingPartDefinition.CreatePart(); part.ShouldBeOfType <DisposableInterceptingComposablePart>(); }
public void TestSetUp() { var mockInterceptor = new Mock<IExportedValueInterceptor>(); interceptedPartDefinition = AttributedModelServices.CreatePartDefinition(typeof(OrderProcessor), null); interceptingPartDefinition = new InterceptingComposablePartDefinition(interceptedPartDefinition, mockInterceptor.Object); }