public void OAuthWhenOAuthClientIsSpecified()
            {
                var model = new IndexModel() { OAuthClientId = "some_oAuthClientId" };

                Assert.Equal("OAuth", model.AuthenticationType);
            }
            public void RegularWhenOAuthClientIsNotSpecified()
            {
                var model = new IndexModel();

                Assert.Equal("Regular", model.AuthenticationType);
            }
            public void UsernameWhenOAuthClientIdIsNotSpecified()
            {
                var model = new IndexModel() { Username = "******" };

                Assert.Equal("some_username", model.AuthenticationLogin);
            }
            public void TruncatesOAuthClientIdValueGreaterThan6Characters()
            {
                var model = new IndexModel() { OAuthClientId = "123456789" };

                Assert.Equal("123456...", model.AuthenticationLogin);
            }
            public void OAuthWhenOAuthClientIdIsSpecified()
            {
                var model = new IndexModel() { OAuthClientId = "my_id" };

                Assert.Equal("my_id", model.AuthenticationLogin);
            }
            public void DoesNotTruncateOAuthClientIdValueOf6Characters()
            {
                var model = new IndexModel() { OAuthClientId = "123456" };

                Assert.Equal("123456", model.AuthenticationLogin);
            }
            public void DisplaysCorrectNotConfiguredValue()
            {
                var model = new IndexModel();

                Assert.Equal("[Not Configured]", model.AuthenticationLogin);
            }