예제 #1
0
 public void GetStateTest()
 {
     SGServiceHost target = new SGServiceHost(); // TODO: Initialize to an appropriate value
     CommunicationState expected = new CommunicationState(); // TODO: Initialize to an appropriate value
     CommunicationState actual;
     actual = target.GetState();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
예제 #2
0
 public void GetDescriptionTest()
 {
     SGServiceHost target = new SGServiceHost(); // TODO: Initialize to an appropriate value
     ServiceDescription expected = null; // TODO: Initialize to an appropriate value
     ServiceDescription actual;
     actual = target.GetDescription();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
예제 #3
0
        public ServerStart(SmartGridDataDto.UserDto dto, SmartGridDataDto.users.UserSystemInformationDto usiDto)
        {
            loggedUser = dto;
            loggedUserSystemInformation = usiDto;
            InitializeComponent();
            InitializeHovers();
            host = new SGServiceHost();

            btnStop.Enabled = false;
            stopToolStripMenuItem.Enabled = false;
            btnCheck.Enabled = false;
            checkToolStripMenuItem.Enabled = false;
            toolStripStatusLabel.Text = "Ready.";

            System.Windows.Forms.Application.ApplicationExit += new System.EventHandler(this.OnApplicationExit);
        }
예제 #4
0
 public void SGServiceHostConstructorTest()
 {
     SGServiceHost target = new SGServiceHost();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
예제 #5
0
 public void RunTest()
 {
     SGServiceHost target = new SGServiceHost(); // TODO: Initialize to an appropriate value
     target.Run();
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }