public void Initialize() { _shimsContext = ShimsContext.Create(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _adoShims = AdoShims.ShimAdoNetCalls(); _privateType = new PrivateType(typeof(ReportingData)); }
public void TestInitialize() { _shimContext = ShimsContext.Create(); SharepointShims.ShimSharepointCalls(); _privateObject = new PrivateObject(typeof(EventAudit)); ArrangeShims(); }
public void Setup() { _context = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _adminQueue = new adminqueue(); _privateObject = new PrivateObject(_adminQueue); }
public void TestInitialize() { _testEntity = new ProcessSecurity(); _testEntityPrivate = new PrivateObject(_testEntity); _testEntityPrivateType = new PrivateType(typeof(ProcessSecurity)); _shimsContext = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _spShims = SharepointShims.ShimSharepointCalls(); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _buttonClick1Method = typeof(pspubsettings).GetMethod("Button1_Click", BindingFlags.Instance | BindingFlags.NonPublic); _pspubsettings = new pspubsettings(); _args = new EventArgs(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _pageLoadMethod = typeof(epubstatus).GetMethod("Page_Load", BindingFlags.Instance | BindingFlags.NonPublic); _epubstatus = new epubstatus(); _args = new EventArgs(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _pageLoadMethod = typeof(pspubsettings).GetMethod("Page_Load", BindingFlags.Instance | BindingFlags.NonPublic); _pspubsettings = new pspubsettings(); _args = new EventArgs(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _getInt32Called = false; }
public void TestInitialize() { _shimContext = ShimsContext.Create(); _shimSharepointCalls = SharepointShims.ShimSharepointCalls(); _adoShims = AdoShims.ShimAdoNetCalls(); _privateObject = new PrivateObject(typeof(getts)); ArrangeShims(); }
public void TestInitialize() { _shimContext = ShimsContext.Create(); SharepointShims.ShimSharepointCalls(); _setupListMappingObj = new SetupListMapping(); _privateObject = new PrivateObject(_setupListMappingObj); ArrangeShims(); InitializeUiControls(); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _htmlWriterShims = HtmlTextWriterShims.ShimHtmlTextWriterCalls(); _listDisplaySettingIterator = new ListDisplaySettingIterator(); _privateObject = new PrivateObject(_listDisplaySettingIterator); ArrangeShims(); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _testObj = new MyWorkReportData(new Guid(), ReportData, Server, false, Username, Password); _privateObj = new PrivateObject(_testObj); ShimSPList.AllInstances.ParentWebGet = _ => new ShimSPWeb(); ShimSPWeb.AllInstances.SiteGet = _ => new ShimSPSite(); ShimDateTime.NowGet = () => DefaultDate; }
public void TestInitialize() { _shimsObject = ShimsContext.Create(); SharepointShims.ShimSharepointCalls(); _shimAdo = AdoShims.ShimAdoNetCalls(); ArrangeShims(); _applicationInstaller = new ApplicationInstaller( string.Empty, new ShimSqlConnection().Instance, new ShimInstallAndConfigure().Instance); _privateObject = new PrivateObject(_applicationInstaller); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _ioShims = IOShims.ShimIOCalls(); _cryptographyShims = CryptographyShims.ShimCryptographyCalls(); _timerJobBuild = Guid.NewGuid(); _defaultStatus = 1; _spQuery = string.Empty; _filterFieldName = string.Empty; _useWbs = string.Empty; _listTitlePattern = string.Empty; _groupByFieldNames = new List <string>(); }
public void SetUp() { _shimsContext = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); _testObj = new adminconns(); _privateObj = new PrivateObject(_testObj); ShimCoreFunctions.getConnectionStringGuid = (guid) => TestConnectionString; var webApp = new ShimSPWebApplication(); var persistedObject = new ShimSPPersistedObject(webApp); persistedObject.IdGet = () => Guid.Parse(WebAppId); _webAppSelector = new StubWebApplicationSelector { GetItem01 = () => webApp }; }
public void Initialize() { _shims = ShimsContext.Create(); _adoShims = AdoShims.ShimAdoNetCalls(); _sharepointShims = SharepointShims.ShimSharepointCalls(); }
public void TestInitialize() { _shimsContext = ShimsContext.Create(); _sharepointShims = SharepointShims.ShimSharepointCalls(); InitializeSharePoint(); }