GetSubscribersCount() 공개 메소드

public GetSubscribersCount ( ) : int
리턴 int
        public async Task BehaviorShouldUnhookEventWhenDetaching()
        {
            await ExecuteOnUIThread(() =>
                {
                    var control = new MockFrameworkElement();

                    var accessor = new MockRegionManagerAccessor
                                       {
                                           GetRegionName = d => "myRegionName",
                                       };
                    var behavior = DelayedRegionCreationBehaviorFixture.GetBehavior(control, accessor);
                    behavior.Attach();

                    int startingCount = accessor.GetSubscribersCount();

                    behavior.Detach();

                    Assert.AreEqual<int>(startingCount - 1, accessor.GetSubscribersCount());
                });
        }
        public void BehaviorShouldUnhookEventWhenDetaching()
        {
            var control = new MockFrameworkElement();

            var accessor = new MockRegionManagerAccessor
                               {
                                   GetRegionName = d => "myRegionName",
                               };
            var behavior = this.GetBehavior(control, accessor);
            behavior.Attach();

            int startingCount = accessor.GetSubscribersCount();

            behavior.Detach();

            Assert.AreEqual<int>(startingCount - 1, accessor.GetSubscribersCount());
        }