Пример #1
0
        public void SetUp()
        {
            _queryStringCollection         = new NameValueCollection();
            _emailProfileBaseObject        = new emailProfile_base();
            _emailProfileBasePrivateObject = new PrivateObject(_emailProfileBaseObject);

            InitializePageControls();
        }
        public void SetUp()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(DefaultCulture);
            _context       = ShimsContext.Create();
            _page          = new emailProfile_base();
            _privateObject = new PrivateObject(_page);

            SetupFakes();
        }
Пример #3
0
        public void OneTimeSetUp()
        {
            _shimsContext = ShimsContext.Create();
            ShimUserControl.AllInstances.RequestGet     = (userControl) => { return(_httpRequest); };
            ShimHttpRequest.AllInstances.QueryStringGet = (request) => { return(_queryStringCollection); };

            _shimHttpRequest        = new ShimHttpRequest();
            _emailProfileBaseObject = new emailProfile_base();
            _httpRequest            = _shimHttpRequest.Instance;
        }