public void Integration_UpdateSale_ShouldBeFail() { Venda venda = ObjectMotherSale.GetVendasSemCliente(); Action action = () => _service.Add(venda); action.Should().Throw <ClienteIsNullOrEmpty>(); }
public void SaleSql_Update_ShouldBeFail() { _venda = ObjectMotherSale.GetVendasSemCliente(); Action action = () => _repository.Update(_venda); action.Should().Throw <ClienteIsNullOrEmpty>(); }
public void VendaService_Update_ShouldBeFail() { _venda = ObjectMotherSale.GetVendasSemCliente(); Action action = () => _vendaService.Update(_venda); action.Should().Throw <ClienteIsNullOrEmpty>(); _vendaRepository.VerifyNoOtherCalls(); }