Ejemplo n.º 1
0
        public void PublishSmartObjectsFromResources_DefaultValues()
        {
            // Arrange
            var smartObjectInfo         = SmartObjectInfo.Create(Resources.SmartObjectDefinition_ProcessInfo);
            var mockSmartObjectExplorer = Mock.Of <SmartObjectExplorer>();

            mockSmartObjectExplorer.SmartObjects.Add(smartObjectInfo);

            MockWrapperFactory.Instance.SmartObjectManagementServer
            .Setup(i => i.GetSmartObjects(
                       It.IsAny <string>()))
            .Returns(mockSmartObjectExplorer);

            var smartObjectDefinitionsPublish = new SmartObjectDefinitionsPublish();

            smartObjectDefinitionsPublish.SmartObjects.Add(new SmartObjectDefinition());

            // Action
            SmartObjectHelper.PublishSmartObjectsFromResources(this.GetType().Assembly, null);
        }