예제 #1
0
        public void WhenCreatingNewActionThenActionAttributesMatch()
        {
            MakeSnapshotAction action = new MakeSnapshotAction(_model.Object, Name);

            Assert.AreEqual(1, action.Data.Count);
            Assert.AreEqual(Name, _data["name"]);
        }
예제 #2
0
        public void WhenLoadingExistingActionThenActionAttributesMatch()
        {
            object[]           args   = { _model.Object, _data };
            MakeSnapshotAction action = new MakeSnapshotAction(args);

            Assert.AreEqual(1, action.Data.Count);
            Assert.AreEqual(Name, _data["name"]);
        }
예제 #3
0
        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);
        }
예제 #4
0
        public void MakeSnapshot(string description)
        {
            MakeSnapshotAction action = new MakeSnapshotAction(_dsmModel, description);

            _actionManager.Execute(action);
        }