public void Domain_Conta_Validar_ContaSemClienteDeveLancarExcessao() { //Arrange _conta = ContaObjectMother.GetContaSemCliente(); //Action Action act = () => _conta.Validar(); //Verify act.Should().Throw <ContaClienteInvalidoException>(); }
public void Service_Conta_AdicionarContaSemCliente_DeveLancarExcecao() { //Arrange _conta = ContaObjectMother.GetContaSemCliente(); //Action Action act = () => _conta.Validar(); //Verify act.Should().Throw <ContaClienteInvalidoException>(); _repositoryFake.VerifyNoOtherCalls(); }