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()); }
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()); }