Arc.Integration.Tests.Infrastructure.Presentation.Mvp.UserControlTests.Should_inject_presenter_to_view_and_hookup_events C# (CSharp) Method

Should_inject_presenter_to_view_and_hookup_events() private method

private Should_inject_presenter_to_view_and_hookup_events ( ) : void
return void
        public void Should_inject_presenter_to_view_and_hookup_events()
        {
            var serviceLocator = new Arc.Infrastructure.Dependencies.StructureMap.ServiceLocator();

            Application.ServiceLocatorIs(serviceLocator)
                .Load(new DependencyConfiguration());

            var target = CreateSUT();

            target.Initialize();

            Assert.That(target.Presenter, Is.Not.Null);
            Assert.That(target.Presenter.View, Is.SameAs(target));
            Assert.That(target.HookupEventsWasCalled, Is.True);
        }