예제 #1
0
        public void AuthenticatedUserWithUserRole_Factorial_ShouldSuccess()
        {
            // Arrange
            var service = new CalculatorServiceClient();

            service.ClientCredentials.UserName.UserName = "******";
            service.ClientCredentials.UserName.Password = "******";

            // Act
            var value = service.Factorial(10);

            // Assert
            Assert.AreEqual((ulong)3628800, value);
        }