示例#1
0
        public void GetServiceObject_DefaultValues()
        {
            // Arrange
            MockWrapperFactory.Instance.SmartObjectManagementServer
            .Setup(i => i.GetServiceInstanceServiceObject(
                       It.IsAny <Guid>(),
                       It.IsAny <string>()))
            .Returns(Resources.ServiceObject_ProcessOverview);

            // Action
            var serviceObject = SmartObjectHelper.GetServiceObject(Mock.Of <ServiceInstanceSettings>(), Guid.NewGuid().ToString());

            // Assert
            Assert.IsNotNull(serviceObject);
        }