public void SetUp()
        {
            _mockRequestData = MockRepository.GenerateMock<IDataTableRequestCollection>();
            _mockRequestData.Stub(x => x.SerializeAsDataContract()).Return(false);

            _wrapper = new DataTableWrapper<IDataTableSerializer>(_mockRequestData, null);
        }
        public void SetUp()
        {
            _mockRequestData = MockRepository.GenerateMock<IDataTableRequestCollection>();
            _mockRequestData.Stub(x => x.Echo).Return(Guid.NewGuid().ToString());

            _wrapper = new DataTableWrapper<IDataTableSerializer>(_mockRequestData, null);
        }
Пример #3
0
        public void SetUp()
        {
            _mockRequestData = MockRepository.GenerateMock <IDataTableRequestCollection>();
            _mockRequestData.Stub(x => x.SerializeAsDataContract()).Return(false);

            _wrapper = new DataTableWrapper <IDataTableSerializer>(_mockRequestData, null);
        }
Пример #4
0
        public void SetUp()
        {
            _mockRequestData = MockRepository.GenerateMock <IDataTableRequestCollection>();
            _mockRequestData.Stub(x => x.Echo).Return(Guid.NewGuid().ToString());

            _wrapper = new DataTableWrapper <IDataTableSerializer>(_mockRequestData, null);
        }
        public void SetUp()
        {
            _expectedEchoValue = _random.Next(1, int.MaxValue);

            _mockRequestData = MockRepository.GenerateMock<IDataTableRequestCollection>();
            _mockRequestData.Stub(x => x.Echo).Return(_expectedEchoValue.ToString(CultureInfo.InvariantCulture));

            _wrapper = new DataTableWrapper<IDataTableSerializer>(_mockRequestData, null);
        }
Пример #6
0
        public void SetUp()
        {
            _expectedEchoValue = _random.Next(1, int.MaxValue);

            _mockRequestData = MockRepository.GenerateMock <IDataTableRequestCollection>();
            _mockRequestData.Stub(x => x.Echo).Return(_expectedEchoValue.ToString(CultureInfo.InvariantCulture));

            _wrapper = new DataTableWrapper <IDataTableSerializer>(_mockRequestData, null);
        }
 public void TearDown()
 {
     _mockRequestData = null;
     _wrapper = null;
 }
Пример #8
0
 public void TearDown()
 {
     _mockRequestData = null;
     _wrapper         = null;
 }
 public void TearDown()
 {
     _mockRequestData = null;
     _wrapper = null;
     _expectedEchoValue = -999999999;
 }
Пример #10
0
 /// <summary>
 /// In put a populated <see cref="DataTableRequestCollection"/> and a collection of <see cref="IDataTableSerializer"/>
 /// </summary>
 /// <param name="dataTableRequestCollection"></param>
 /// <param name="collection"></param>
 public DataTableWrapper(IDataTableRequestCollection dataTableRequestCollection, IList <T> collection)
 {
     _dataTableRequestCollection = dataTableRequestCollection;
     _collection = collection;
 }
Пример #11
0
 public void TearDown()
 {
     _mockRequestData   = null;
     _wrapper           = null;
     _expectedEchoValue = -999999999;
 }