Beispiel #1
0
        public void Can_Delete_Account()
        {
            // Arrange
            AtPage <HomePage>(
                (homepage) =>
            {
                ManagePage page = homepage
                                  .SignIn()
                                  .SignInWithAmazon()
                                  .Manage();

                // Act
                page.DeleteAccount()
                .Close();

                // Assert
                page.IsAuthenticated().ShouldBeTrue();

                // Act
                page.DeleteAccount()
                .Confirm();

                // Assert
                page.IsAuthenticated().ShouldBeFalse();
            });
        }