コード例 #1
0
 public void DeleteNodeActiveLoadTest()
 {
     NodeActiveLoadDataManager target = new NodeActiveLoadDataManager(); // TODO: Initialize to an appropriate value
     NodeActiveLoadDto dto = null; // TODO: Initialize to an appropriate value
     target.DeleteNodeActiveLoad(dto);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #2
0
 public void GetAllNodeActiveLoadsTest()
 {
     NodeActiveLoadDataManager target = new NodeActiveLoadDataManager(); // TODO: Initialize to an appropriate value
     List<NodeActiveLoadDto> expected = null; // TODO: Initialize to an appropriate value
     List<NodeActiveLoadDto> actual;
     actual = target.GetAllNodeActiveLoads();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #3
0
 public void AnnullValuesTest()
 {
     NodeActiveLoadDataManager target = new NodeActiveLoadDataManager(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = target.AnnullValues();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #4
0
ファイル: ServerStart.cs プロジェクト: boskomijin/SGApp
        private void InitializeCurrentValues()
        {
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Init all current values...");

            NodeActiveLoadDataManager nodeActiveLoadDataManager = new NodeActiveLoadDataManager();
            AppendMessageToActionInformation (nodeActiveLoadDataManager.InitializeValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current node active loads are initialized.");

            NodeReactiveLoadDataManager nodeReactiveLoadDataManager = new NodeReactiveLoadDataManager();
            AppendMessageToActionInformation(nodeReactiveLoadDataManager.InitializeValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current node reactive loads are initialized.");

            BranchResistanceDataManager branchResistanceDataManager = new BranchResistanceDataManager();
            AppendMessageToActionInformation(branchResistanceDataManager.InitializeValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current branch resistances are initialized.");

            BranchReactanceDataManager branchReactanceDataManager = new BranchReactanceDataManager();
            AppendMessageToActionInformation(branchReactanceDataManager.InitializeValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current branch reactances are initialized.");
            AppendMessageToActionInformation("\r\nAll current values initialized.");
        }
コード例 #5
0
ファイル: ServerStart.cs プロジェクト: boskomijin/SGApp
        private void AnnullCurrentValues()
        {
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Annulling all current values...");

            NodeActiveLoadDataManager nodeActiveLoadDataManager = new NodeActiveLoadDataManager();
            AppendMessageToActionInformation(nodeActiveLoadDataManager.AnnullValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current node active loads are annulled.");

            NodeReactiveLoadDataManager nodeReactiveLoadDataManager = new NodeReactiveLoadDataManager();
            AppendMessageToActionInformation(nodeReactiveLoadDataManager.AnnullValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current node reactive loads are annulled.");

            BranchResistanceDataManager branchResistanceDataManager = new BranchResistanceDataManager();
            AppendMessageToActionInformation(branchResistanceDataManager.AnnullValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current branch resistances are annulled.");

            BranchReactanceDataManager branchReactanceDataManager = new BranchReactanceDataManager();
            AppendMessageToActionInformation(branchReactanceDataManager.AnnullValues());
            AppendMessageToActionInformation(System.DateTime.Now.ToLongDateString() + " - " + System.DateTime.Now.ToLongTimeString() + ": " + "Current branch reactances are annulled.");

            AppendMessageToActionInformation("\r\nAll current values annulled. \nSmart Grid is stopped.");
        }
コード例 #6
0
 public void NodeActiveLoadDataManagerConstructorTest()
 {
     NodeActiveLoadDataManager target = new NodeActiveLoadDataManager();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }