public void GetResourcePoolViews_OnValidCall_ConfirmResult()
        {
            // Arrange, Act
            var result = ResourceGridClass.GetResourcePoolViews(DummyString, _web);

            // Assert
            this.ShouldSatisfyAllConditions(
                () => _gridViewInitialized.ShouldBeTrue(),
                () => result.ShouldNotBeNullOrEmpty(),
                () => result.ShouldContain(ResourcePoolViewsTag),
                () => result.ShouldContain(ViewsTag),
                () => result.ShouldContain(RootTags));
        }
        public void GetResourcePoolViews_OnError_ThrowException()
        {
            // Arrange
            ShimCacheStoreCategory.ConstructorSPWeb = (_, __) =>
            {
                throw new Exception(DummyError);
            };

            // Act
            Action action = () => ResourceGridClass.GetResourcePoolViews(DummyString, _web);

            // Assert
            Should.Throw <APIException>(action).Message.ShouldBe(DummyError);
        }