Ejemplo n.º 1
0
        public void IWantToRegisterANewUserC()
        {
            //Demonstrates inline naming and renaming through test
            var user        = new WebUser();
            var newCustomer = new TestCustomer("*****@*****.**");

            SoThat(MyBusinessValue.WeIncreaseTheCustomerBase)
            .As(user.Named("The user"))
            .Given(newCustomer.Named("customer for the first time").Has("completed").Registration)
            .When(newCustomer.Named("via email customer").Has("confirmed").Registration)
            .Then(newCustomer.Named("returning customer").Login);
        }