public void ShouldMockThrowIfFillArgumentNull()
        {
            //Arrage
            var sut = new MockDbDataAdapter(MockDataTableFactory.GetCreateDataTable());

            //Act
            Action todo = () => sut.Fill(null);

            //Asser
            todo.Should().Throw <ArgumentNullException>();
        }
        public void MockShouldReturnedOneTable()
        {
            //Arrage
            var sut     = new MockDbDataAdapter(MockDataTableFactory.GetCreateDataTable());
            var dataSet = new DataSet();

            //Act
            sut.Fill(dataSet);

            //Asser
            dataSet.Tables.Should().HaveCount(1);
        }
        public void MockShouldReturnedData()
        {
            //Arrage
            var sut     = new MockDbDataAdapter(MockDataTableFactory.GetCreateDataTable());
            var dataSet = new DataSet();

            //Act
            sut.Fill(dataSet);

            //Asser
            dataSet.Tables.Should().HaveCount(1, "Mert egy táblával kell visszatérni");

            var table = dataSet.Tables[0];

            MockDataTableFactory.CheckDataTable(table);
        }