C
C#2y ago
yotabit

Integration Testing

I learned about the integration testing concept, but I'm having a hard time finding how people are using it. I use WPF and MVVM in my project. - Do you use Integration testing? If yes, how do you use it? - What are recommended tools to work with MVVM+WPF + tests? - Is there anything you'd like me to know before I start writing my integration tests?
5 Replies
Monsieur Wholesome
You integration-test services, not a UI
Mayor McCheese
You should be about to test your viewmodels too Whether you want to or not is a longer running debate
realivanjxツ
realivanjxツ2y ago
should you mock in integration testing or use the real dependency? what if those dependencies need to like access db or file system? if i mock the dependencies doesnt that sound like unit testing instead? cmiiw
Monsieur Wholesome
Usually you use an in-memory database, with entity framework for example Integration testing is testing a process, an endpoint or service functionality; Lots of things may happen in it Not just "Does A + B equal C" But rather "When calling the api endpoint with an invalid and valid object, will it store one in the db and the other one not and give me the right response"
Mayor McCheese
There are nuances
Want results from more Discord servers?
Add your server
More Posts
LINQ expression could not be translated after converting object```CS public static BugDTO ConvertToDTO(Bug bug) => new BugDTO { Id = bug.Id, Description = HttpGet API Endpoint Accepting Array ParameterI have an endpoint for an HttpGet method: ``` [Route("fightIds")] [HttpGet] public asynI have a problem with running my code and I'm unsure if it is Visual Studio or my CodeIn the screenshot it displays my menu. Then I type my option in (1- in this case). then my command pHow to put enum values in a list [SOLVED]Hi, I'm quite new to C# and I'm still learning, but I'm tasked to debug a piece of code using C#, I System.UnauthorizedAccessException [Answered]Hei I need help with this line ``` foreach (string valid_path in Directory.EnumerateDirectories(diViewModel does not exsist in namespace, But it doesGot this Code: ``` d:DataContext="{d:DesignInstance Type=main:CloseReasonViewModel, IsDesignTimeParsing string to TimeSpanHey guys, I'm trying to parse some string to TimeSpan . Input string is "01:02:01" and I'm trying itWhat's the best way to not require forward declaration when traversing an AST [Answered]I'm making a programming language, and I don't want to force forward declaration. I also would like Calling a function from a string.Hey, everyone! I have a timer that will run every 100ms, but I have a list of functions named "f1", Entity Framework - Migrations Production (Postgres)I'm using this approach: Create database model -> Create OnModelCreating -> dotnet ef migrations add