Esempio n. 1
0
        public void entityMemento_isTracking_with_service_should_be_true()
        {
            var memento = new ChangeTrackingService();
            var target  = new TestableMementoEntity(memento);

            target.GetIsTracking().Should().Be.True();
        }
Esempio n. 2
0
        public void entityMemento_isTracking_with_service_and_registerAsTransient_false_should_be_true()
        {
            var memento = new ChangeTrackingService();
            var target  = new TestableMementoEntity(memento, false);

            target.GetIsTracking().Should().Be.True();
        }
Esempio n. 3
0
        public void entityMemento_isTracking_with_suspended_serviceand_registerAsTransient_true_should_be_false()
        {
            var memento = new ChangeTrackingService();

            memento.Suspend();

            var target = new TestableMementoEntity(memento, true);

            target.GetIsTracking().Should().Be.False();
        }
Esempio n. 4
0
        public void entityMemento_isTracking_without_service_should_be_false()
        {
            var target = new TestableMementoEntity();

            target.GetIsTracking().Should().Be.False();
        }
Esempio n. 5
0
        public void entityMemento_isTracking_without_service_and_with_registerAsTransient_request_false_should_be_false()
        {
            var target = new TestableMementoEntity(false);

            target.GetIsTracking().Should().Be.False();
        }