public void Should_initialize_facility_when_added_to_the_container()
        {
            var container = new CompactContainer();

            var facility = new TestFacility();
            container.AddFacility(facility);

            facility.Initialized.Should().Be.True();
        }
Beispiel #2
0
        public void Should_initialize_facility_when_added_to_the_container()
        {
            var container = new CompactContainer();

            var facility = new TestFacility();

            container.AddFacility(facility);

            facility.Initialized.Should().Be.True();
        }
Beispiel #3
0
        public void Should_terminate_added_facilities_when_disposing_the_container()
        {
            var facility = new TestFacility();

            using (var container = new CompactContainer())
            {
                container.AddFacility(facility);
            }

            facility.Terminated.Should().Be.True();
        }
        public void Should_terminate_added_facilities_when_disposing_the_container()
        {
            var facility = new TestFacility();

            using( var container = new CompactContainer())
            {
                container.AddFacility(facility);
            }

            facility.Terminated.Should().Be.True();
        }