public void entityMemento_isTracking_with_service_should_be_true() { var memento = new ChangeTrackingService(); var target = new TestableMementoEntity(memento); target.GetIsTracking().Should().Be.True(); }
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(); }
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(); }
public void entityMemento_isTracking_without_service_should_be_false() { var target = new TestableMementoEntity(); target.GetIsTracking().Should().Be.False(); }
public void entityMemento_isTracking_without_service_and_with_registerAsTransient_request_false_should_be_false() { var target = new TestableMementoEntity(false); target.GetIsTracking().Should().Be.False(); }