Click here to Skip to main content
15,887,027 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard MacCutchan17-Aug-23 0:17
mveRichard MacCutchan17-Aug-23 0:17 
AnswerRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard Deeming17-Aug-23 1:25
mveRichard Deeming17-Aug-23 1:25 
GeneralRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard MacCutchan17-Aug-23 1:35
mveRichard MacCutchan17-Aug-23 1:35 
AnswerRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Dave Kreskowiak17-Aug-23 3:13
mveDave Kreskowiak17-Aug-23 3:13 
GeneralRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard MacCutchan17-Aug-23 3:23
mveRichard MacCutchan17-Aug-23 3:23 
AnswerRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
jschell17-Aug-23 5:37
jschell17-Aug-23 5:37 
QuestionHow would you test a minimal api that uses a dictionary for saving entities? Pin
Nikol Dimitrova 202314-Aug-23 13:13
Nikol Dimitrova 202314-Aug-23 13:13 
AnswerRe: How would you test a minimal api that uses a dictionary for saving entities? Pin
jschell15-Aug-23 4:36
jschell15-Aug-23 4:36 
You might want to research 'code coverage' tools. Those collect stats during your test to make sure that you have tested all code paths.

Also note that you should not be actually testing the dictionary. But rather the usage of that. But perhaps that is what you mean.

Nikol Dimitrova 2023 wrote:
Is there a way for me to access the _students dictionary from the Program.cs file?


Presumably to test that the state is as excepted. Yes there are several.
1. Just publicly expose the dictionary (getter)
2. You can use reflection to get to the internals of a class.

If you use the second then you should document with a comment that it only public for testing.

For a small case like this I would use the first (getter). For larger libraries I would use reflection because the idiom is clearer with more usage and because more chance of public methods getting misused over time.
GeneralRe: How would you test a minimal api that uses a dictionary for saving entities? Pin
Nikol Dimitrova 202315-Aug-23 7:46
Nikol Dimitrova 202315-Aug-23 7:46 
AnswerRe: How would you test a minimal api that uses a dictionary for saving entities? Pin
Gerry Schmitz15-Aug-23 4:37
mveGerry Schmitz15-Aug-23 4:37 
QuestionCreating a print event handler in a class, and calling it from my print dialog, I need human help on this Pin
jkirkerx27-Jul-23 9:08
professionaljkirkerx27-Jul-23 9:08 
AnswerRe: Creating a print event handler in a class, and calling it from my print dialog, I need human help on this Pin
Richard Andrew x6427-Jul-23 10:55
professionalRichard Andrew x6427-Jul-23 10:55 
GeneralRe: Creating a print event handler in a class, and calling it from my print dialog, I need human help on this Pin
jkirkerx27-Jul-23 11:14
professionaljkirkerx27-Jul-23 11:14 
GeneralRe: Creating a print event handler in a class, and calling it from my print dialog, I need human help on this Pin
Dave Kreskowiak27-Jul-23 18:02
mveDave Kreskowiak27-Jul-23 18:02 
GeneralRe: Creating a print event handler in a class, and calling it from my print dialog, I need human help on this Pin
jkirkerx28-Jul-23 6:26
professionaljkirkerx28-Jul-23 6:26 
QuestionNuGet Packages and Library Files Pin
Richard Andrew x642-Jul-23 6:25
professionalRichard Andrew x642-Jul-23 6:25 
AnswerRe: NuGet Packages and Library Files Pin
Gerry Schmitz2-Jul-23 7:38
mveGerry Schmitz2-Jul-23 7:38 
GeneralRe: NuGet Packages and Library Files Pin
Richard Andrew x642-Jul-23 8:36
professionalRichard Andrew x642-Jul-23 8:36 
GeneralRe: NuGet Packages and Library Files Pin
Gerry Schmitz2-Jul-23 11:03
mveGerry Schmitz2-Jul-23 11:03 
AnswerRe: NuGet Packages and Library Files Pin
Dave Kreskowiak2-Jul-23 9:27
mveDave Kreskowiak2-Jul-23 9:27 
GeneralRe: NuGet Packages and Library Files Pin
Richard Andrew x642-Jul-23 10:38
professionalRichard Andrew x642-Jul-23 10:38 
AnswerRe: NuGet Packages and Library Files Pin
Mirza Ahmed Ali Baig3-Sep-23 23:30
Mirza Ahmed Ali Baig3-Sep-23 23:30 
QuestionIsolated/protected execution environment? Pin
GregJ728-May-23 14:16
GregJ728-May-23 14:16 
AnswerRe: Isolated/protected execution environment? Pin
Dave Kreskowiak29-May-23 3:58
mveDave Kreskowiak29-May-23 3:58 
GeneralRe: Isolated/protected execution environment? Pin
GregJ729-May-23 6:47
GregJ729-May-23 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.