예제 #1
0
        public void Dado_um_username_invalido_deve_gerar_notificacao()
        {
            var runtime = new Runtime();

            RegisterUserCommand command = new RegisterUserCommand();

            command.Username = "";
            command.Password = "******";

            RegisterUserService service = new RegisterUserService(command, new FakeUserRepository());

            service.Run();

            runtime.AddNotifications(service.GetNotifications());

            Assert.IsTrue(runtime.HasNotifications());
        }
예제 #2
0
        public void TestMethod1()
        {
            var runtime = new Runtime();

            RegisterUserCommand command = new RegisterUserCommand();

            command.Username = "";
            command.Password = "******";

            RegisterUserService service = new RegisterUserService(command, new FakeUserRepository());

            service.Run();

            runtime.AddNotifications(service.GetNotifications());

            Assert.IsTrue(runtime.HasNotifications());
        }