Пример #1
0
        public void transient_EffortConnection_should_unregister_container2()
        {
            EffortConnectionMock conn = new EffortConnectionMock();

            conn.ConnectionString = "IsTransient=True";

            conn.Dispose();

            conn.IsUnregisterContainerCalled.Should().BeTrue();
        }
Пример #2
0
        public void transient_EffortConnection_should_unregister_container()
        {
            EffortConnectionMock conn = new EffortConnectionMock();

            conn.MarkAsPrimaryTransient();

            conn.Dispose();

            conn.IsUnregisterContainerCalled.Should().BeTrue();
        }