Beispiel #1
0
        public void T10_ResourceSetup_WD01()
        {
            ResourceSetup s = new ResourceSetup();

            s.Resource_Name = "WD-01";

            ResourceStatusReason r = new ResourceStatusReason();
            s.ResourceStatusReason = r;

            ResourceStatus tostatus = new ResourceStatus();
            tostatus.Name = "PM";
            s.ResourceToStatus = tostatus;

            Assert.IsTrue(s.ExecuteService(), s.CompletionMessage);
        }
Beispiel #2
0
 protected override bool ModifyEntity()
 {
     bool success = base.ModifyEntity();
     ResourceStatus resourceStatus = new ResourceStatus();
     resourceStatus.Name = "Run";
     ResourceProductionInfo.ResourceStatus = ResolveCDO(resourceStatus.GetType(), resourceStatus.Name) as ResourceStatus;
     return success;
 }