public void Integration_DeletarBoloes_Incorretamente_Caindo_Na_Excecao() { _bolao = ObjectMother.GetBolaoComId(); Action action = () => _service.Excluir(_bolao); action.Should().Throw <UnsupportedOperationException>(); }
public void Service_Bolao_Deveria_Excluir_Bolao() { _bolao = ObjectMother.GetBolaoComId(); _repository .Setup(x => x.Excluir(It.IsAny <int>())); _service.Excluir(_bolao); _repository.Verify(x => x.Excluir(_bolao.Id)); }