public void Clear_Sets_DataObj_To_Null()
        {
            //Arrange
            var backer = new DataBackingStore();
            var mockObj = new Mock<IFrame>();

            backer.SetData(mockObj.Object);
            backer.Clear();

            IFrame actualObj = backer.DataObj;
            Assert.Null(actualObj);
        }
        public void Clear_Fires_The_StoreStatusChanging_Event_Before_It_Goes_From_A_DataObj_To_Null()
        {
            //Arrange
            var backer = new DataBackingStore();
            var mockObj = new Mock<IFrame>();

            var helper = new HelperForBackingStores();
            backer.StoreStatusChanging += new StatusChangeEventHandler<IBackingStore, StoreStatusChangeEventArgs>
                                            (helper.StoreStatusChanging_DummyHandler);

            backer.SetData(mockObj.Object);
            backer.Clear();

            Assert.Equal(1, helper.StoreStatusChanging_TimesCalled);
        }