Posts by BrenoSarkis • 306 points
8 posts
-
2
votes3
answers698
viewsA: Unit tests with Nunit
If you install Runner for Visual Studio 2013, your test results should appear in the test explorer, without the need to open the Nunit test explorer. Follow the link:…
c#answered BrenoSarkis 306 -
1
votes1
answer6384
viewsA: Adding values present in a List
Try changing the code to the following: Cliente cliente = Clientes[listaClientes.SelectedIndex]; int total = cliente.Produtos.Sum(x => Convert.ToInt32(x.ValorProduto)); string soma =…
-
3
votes1
answer1405
viewsA: What are the layers and folder names for organizing projects?
I believe your question boils down to: What are the appropriate practices to organize the layers of these projects and the folders that separate the projects? Breaking your question in two parts:…
-
2
votes1
answer88
viewsA: This error message appears when running my program
Based on what I was able to deduce from your "Agendadbcontext" class, the problem is that the Agenda variable is not public. In C#, when the access modifier is omitted, private is inferred. That is,…
-
3
votes2
answers52
viewsA: Prevent the user from voting in the same Post
You could create a flag (boolean variable) to mark if that user has already cast the vote in this chapter. To do this you would have to create a new table that stores the User ID and a chapter ID,…
-
1
votes1
answer422
viewsA: Object-relational impedance difference
Perhaps my answer is vague, but if we look at it, the question was too broad and I have no reputation to comment on. Just you see the situation as follows, the proposal of the Orms is a lie. It is…
-
3
votes1
answer720
viewsA: Adding more than one string to a List
As pointed out in the comments, your code is very difficult to understand but something caught my attention as potential problem: procli.Comprou = new List<ProdutoComprado> { new…
-
0
votes1
answer7307
viewsA: Check items from a list in another list
Alan, It’s easier for other developers to understand your code when you follow the conventions, parameter in. NET starts with minute handwriting, and despite the odd names, I hope I can answer your…