public void WhenCreatingNewActionThenActionAttributesMatch() { MakeSnapshotAction action = new MakeSnapshotAction(_model.Object, Name); Assert.AreEqual(1, action.Data.Count); Assert.AreEqual(Name, _data["name"]); }
public void WhenLoadingExistingActionThenActionAttributesMatch() { object[] args = { _model.Object, _data }; MakeSnapshotAction action = new MakeSnapshotAction(args); Assert.AreEqual(1, action.Data.Count); Assert.AreEqual(Name, _data["name"]); }
private void MakeSnapshot() { string timestamp = DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm:ss"); string description = $"Import file={_dsmFilename} time={timestamp}"; MakeSnapshotAction action = new MakeSnapshotAction(_dsmModel, description); _actionManager.Execute(action); }
public void MakeSnapshot(string description) { MakeSnapshotAction action = new MakeSnapshotAction(_dsmModel, description); _actionManager.Execute(action); }