Beispiel #1
0
        public void integration_TestUserLoginMustFail()
        {
            var builder = new UserEntityBuilder().John();

            var orchestrator = OrchestrationFactory.CreateSecurityOrchestration(false, false);
            var response     = orchestrator.Login(builder.Username, "Wrong password");

            Assert.IsFalse(response, "The password is wrong");
        }
        public void Stubbed_TestUserLoginMustFail()
        {
            var username = "******";
            var password = "******";

            var orchestrator = OrchestrationFactory.CreateSecurityOrchestration(true, false);
            var response     = orchestrator.Login(username, password);

            Assert.IsTrue(response, "A username that contains does not contain fail must succeed");
        }