Exemplo n.º 1
0
        public void Integration_UpdateSale_ShouldBeFail()
        {
            Venda  venda  = ObjectMotherSale.GetVendasSemCliente();
            Action action = () => _service.Add(venda);

            action.Should().Throw <ClienteIsNullOrEmpty>();
        }
Exemplo n.º 2
0
        public void SaleSql_Update_ShouldBeFail()
        {
            _venda = ObjectMotherSale.GetVendasSemCliente();
            Action action = () => _repository.Update(_venda);

            action.Should().Throw <ClienteIsNullOrEmpty>();
        }
Exemplo n.º 3
0
        public void VendaService_Update_ShouldBeFail()
        {
            _venda = ObjectMotherSale.GetVendasSemCliente();
            Action action = () => _vendaService.Update(_venda);

            action.Should().Throw <ClienteIsNullOrEmpty>();
            _vendaRepository.VerifyNoOtherCalls();
        }