public void MockDataTableFactoryShouldReturnData()
        {
            var sut = MockDataTableFactory.CreateDataTable();


            MockDataTableFactory.CheckDataTable(sut);
        }
Esempio n. 2
0
        public void MockDbDataAdapterShouldReturnData()
        {
            var sut     = new MockDbDataAdapter(MockDataTableFactory.CreateDataTable());
            var dataSet = new DataSet();

            //Delegate - Rogzitem a muveletet<
            sut.Fill(dataSet);

            dataSet.Tables.Should().HaveCount(1);

            var table = dataSet.Tables[0];

            MockDataTableFactory.CheckDataTable(table);
        }