public void BindingSource_Has_No_Data()
        {
            var bindingSource = new BindingSource();

            Assert.IsFalse(bindingSource.HasData(),
                           "Expected  no data");
        }
        public void BindingSource_HasData()
        {
            // arrange
            var bsContact = new BindingSource();
            var ops       = new DataOperations();

            // act
            bsContact.DataSource = ops.GetAll();

            // assert
            Assert.IsTrue(bsContact.HasData(),
                          "Expected data");
        }
        public void BindingSource_HasData()
        {
            // arrange
            var bindingSource  = new BindingSource();
            var dataOperations = new DataOperations();

            // act
            bindingSource.DataSource = dataOperations.GetCustomers();

            // assert
            Assert.IsTrue(bindingSource.HasData(),
                          "Expected data");
        }