public void ShouldCallIsTemplateBucketable([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, ID templateId, Database database)
 {
     current.IsTemplateBucketable(templateId, database).Returns(true);
     sut.IsTemplateBucketable(templateId, database).Should().BeTrue();
 }
 public void SwitchBucketProvider([Frozen] BucketProvider provider, BucketProviderSwitcher switcher, Item source, Item target)
 {
     BucketManager.MoveItemIntoBucket(source, target);
     provider.Received().MoveItemIntoBucket(source, target);
 }
 public void SutIsSwitcher(BucketProviderSwitcher sut)
 {
     sut.Should().BeAssignableTo <Switcher <BucketProvider> >();
 }
 public void ShouldCallGetFacets([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, List <SearchStringModel> searchQuery, string locationFilter, IList <IEnumerable <SitecoreUIFacet> > expected)
 {
     current.GetFacets(searchQuery, locationFilter).Returns(expected);
     sut.GetFacets(searchQuery, locationFilter).Should().BeSameAs(expected);
 }
 public void SutIsSwitcher(BucketProviderSwitcher sut)
 {
   sut.Should().BeAssignableTo<Switcher<BucketProvider>>();
 }
 public void ShouldCallAddSearchTabToItem([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
     sut.AddSearchTabToItem(item);
     current.Received().AddSearchTabToItem(item);
 }
 public void ShouldCallCopyItem([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item source, Item target, bool deep)
 {
     sut.CopyItem(source, target, deep);
     current.Received().CopyItem(source, target, deep);
 }
 public void ShouldCallCloneItem([Frozen]BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item source, Item target, bool deep, Item expected)
 {
   current.CloneItem(source, target, deep).Returns(expected);
   sut.CloneItem(source, target, deep).Should().BeSameAs(expected);
 }
 public void ShouldCallCopyItem([Frozen]BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item source, Item target, bool deep)
 {
   sut.CopyItem(source, target, deep);
   current.Received().CopyItem(source, target, deep);
 }
 public void ShouldCallSyncBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
   sut.SyncBucket(item);
   current.Received().SyncBucket(item);
 }
 public void ShouldCallAddSearchTabToItem([Frozen]BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
   sut.AddSearchTabToItem(item);
   current.Received().AddSearchTabToItem(item);
 }
 public void ShouldCallMoveItemIntoBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item source, Item target)
 {
   sut.MoveItemIntoBucket(source, target);
   current.Received().MoveItemIntoBucket(source, target);
 }
 public void ShouldCallIsTemplateBucketable([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, ID templateId, Database database)
 {
   current.IsTemplateBucketable(templateId, database).Returns(true);
   sut.IsTemplateBucketable(templateId, database).Should().BeTrue();
 }
 public void SutSwitchesSwitcherCurrentValue([Frozen]BucketProvider provider, BucketProviderSwitcher sut)
 {
   BucketProviderSwitcher.CurrentValue.Should().BeSameAs(provider);
 }
 public void ShouldCallMoveItemIntoBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item source, Item target)
 {
     sut.MoveItemIntoBucket(source, target);
     current.Received().MoveItemIntoBucket(source, target);
 }
 public void ShouldCallCreateBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item, Action<Item> callBack)
 {
   sut.CreateBucket(item, callBack);
   current.Received().CreateBucket(item, callBack);
 }
 public void ShouldCallSyncBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
     sut.SyncBucket(item);
     current.Received().SyncBucket(item);
 }
 public void ShouldCallGetFacets([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, List<SearchStringModel> searchQuery, string locationFilter, IList<IEnumerable<SitecoreUIFacet>> expected)
 {
   current.GetFacets(searchQuery, locationFilter).Returns(expected);
   sut.GetFacets(searchQuery, locationFilter).Should().BeSameAs(expected);
 }
 public void ShouldCallCloneItem([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item source, Item target, bool deep, Item expected)
 {
     current.CloneItem(source, target, deep).Returns(expected);
     sut.CloneItem(source, target, deep).Should().BeSameAs(expected);
 }
 public void ShouldCallIsItemContainedWithinBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
   current.IsItemContainedWithinBucket(item).Returns(true);
   sut.IsItemContainedWithinBucket(item).Should().BeTrue();
 }
 public void ShouldCallCreateBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item, Action <Item> callBack)
 {
     sut.CreateBucket(item, callBack);
     current.Received().CreateBucket(item, callBack);
 }
 public void SutSwitchesSwitcherCurrentValue([Frozen] BucketProvider provider, BucketProviderSwitcher sut)
 {
     BucketProviderSwitcher.CurrentValue.Should().BeSameAs(provider);
 }
 public void ShouldCallIsItemContainedWithinBucket([Frozen] BucketProvider current, BucketProviderSwitcher switcher, SwitchingBucketProvider sut, Item item)
 {
     current.IsItemContainedWithinBucket(item).Returns(true);
     sut.IsItemContainedWithinBucket(item).Should().BeTrue();
 }
 public void SwitchBucketProvider([Frozen]BucketProvider provider, BucketProviderSwitcher switcher, Item source, Item target)
 {
   BucketManager.MoveItemIntoBucket(source, target);
   provider.Received().MoveItemIntoBucket(source, target);
 }