Пример #1
0
        public void VerifyPaging_DefaultValues()
        {
            // Arrange
            var smartObject = SmartObjectFactory.GetSmartObject(SmartObjectOption.ProcessInfo);

            smartObject.MethodToExecute = smartObject.Methods[0].Name;

            DataTable dataTable1 = DataTableFactory.GetDataTableWithOneColumnAndOneRow();

            SmartObjectClientServer server = null;

            MockWrapperFactory.Instance.SmartObjectClientServer
            .Setup(x => x.ExecuteListDataTable(
                       It.IsAny <SmartObject>(),
                       It.IsAny <ExecuteListOptions>()))
            .Returns(dataTable1);

            MockWrapperFactory.Instance.SmartObjectClientServer
            .Setup(x => x.ExecuteListReader(
                       It.IsAny <SmartObject>(),
                       It.IsAny <ExecuteListReaderOptions>()))
            .Returns(default(SmartObjectReader));

            // Action
            SmartObjectHelper.VerifyPaging(server, smartObject, 0);
        }