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

            // Assert
            this.ShouldSatisfyAllConditions(
                () => _gridViewUpdated.ShouldBeTrue(),
                () => _cacheRemoved.ShouldBeTrue(),
                () => result.ShouldNotBeNullOrEmpty(),
                () => result.ShouldBe(ResourcePoolViewsClosedTag));
        }
        public void UpdateResourcePoolViews_OnError_ThrowException()
        {
            // Arrange
            ShimGridViewManagerFactory.Constructor = _ =>
            {
                throw new Exception(DummyError);
            };

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

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