Exemplo n.º 1
0
        public void GvLandingPage_RowCommand(string argument, string page)
        {
            // Arrange
            var commandEventArgs         = new CommandEventArgs(CommandName, argument);
            var gridViewCommandEventArgs = new GridViewCommandEventArgs(argument, commandEventArgs);

            ShimPage.AllInstances.ResponseGet = (x) => new ShimHttpResponse();

            // Act
            ReflectionHelper.ExecuteMethod(baseChannel, MethodLandingPage, new object[] { this, gridViewCommandEventArgs });

            // Assert
            gridViewCommandEventArgs.ShouldSatisfyAllConditions(
                () => gridViewCommandEventArgs.CommandName.ShouldBe(CommandName),
                () => gridViewCommandEventArgs.CommandArgument.ShouldBe(argument));
        }