Пример #1
0
        public void Integration_UpdateSale_ShouldBeFail()
        {
            Venda  venda  = ObjectMotherSale.GetVendasSemCliente();
            Action action = () => _service.Add(venda);

            action.Should().Throw <ClienteIsNullOrEmpty>();
        }
Пример #2
0
        public void SaleSql_Update_ShouldBeFail()
        {
            _venda = ObjectMotherSale.GetVendasSemCliente();
            Action action = () => _repository.Update(_venda);

            action.Should().Throw <ClienteIsNullOrEmpty>();
        }
Пример #3
0
        public void VendaService_Update_ShouldBeFail()
        {
            _venda = ObjectMotherSale.GetVendasSemCliente();
            Action action = () => _vendaService.Update(_venda);

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