public void ConvertPrincipalToTicketData_sets_username_to_the_name_on_the_identity_that_was_passed_in()
        {
            var principalProvider = new TestingPrincipalProvider();

            var ticketData =
                principalProvider.ConvertPrincipalToTicketData(new GenericPrincipal(new GenericIdentity("expected"),
                                                                                    new string[] {}));

            ticketData.Username.ShouldEqual("expected");
        }
        public void ConvertPrincipalToTicketData_sets_username_to_the_name_on_the_identity_that_was_passed_in()
        {
            var principalProvider = new TestingPrincipalProvider();

            var ticketData =
                principalProvider.ConvertPrincipalToTicketData(new GenericPrincipal(new GenericIdentity("expected"),
                                                                                    new string[] {}));

            ticketData.Username.ShouldEqual("expected");
        }
        public void ConvertPrincipalToTicketData_returns_ticket_data()
        {
            var principalProvider = new TestingPrincipalProvider();

            var ticketData =
                principalProvider.ConvertPrincipalToTicketData(new GenericPrincipal(new GenericIdentity("x"),
                                                                                    new string[] {}));

            ticketData.ShouldNotBeNull();
        }
        public void ConvertPrincipalToTicketData_returns_ticket_data()
        {
            var principalProvider = new TestingPrincipalProvider();

            var ticketData =
                principalProvider.ConvertPrincipalToTicketData(new GenericPrincipal(new GenericIdentity("x"),
                                                                                    new string[] {}));

            ticketData.ShouldNotBeNull();
        }