Ejemplo n.º 1
0
        public void execute_successfully()
        {
            var behaviour = new WillRegisterParkingHost();

            var response = behaviour.handle(new_request());

            Assert.AreEqual(1, response.events.Count());
        }
Ejemplo n.º 2
0
        public void correctly_add_new_host()
        {
            var behaviour = new WillRegisterParkingHost();

            var request = new_request();

            var response = behaviour.handle(request);

            Assert.IsTrue(
                response.world.hosts.Any(h => h.username == "kooldave98")
                );

            Assert.IsTrue(
                response.world.hosts.Any(h => h.email == "*****@*****.**")
                );
        }