Ejemplo n.º 1
0
        public void User_ToBasicAuthentication_ReturnsAuthenticationHeaderValue()
        {
            // arrange isolation

            // arrange test
            var expected = "a2VuOlBhc3N3b3Jk";
            var user     = new User {
                Username = "******", Password = "******"
            };

            // act
            var actual = user.ToBasicAuthentication();

            // assert
            actual.ShouldBe(expected);

            // clean-up
        }