Mango
How do I write integration tests
Here is my scenario:
User interacts with UI (Avalonia) -> user inputs information, lets say its checkboxes in a checklist -> user clicks I.E submit button -> command on view model takes all the data the user inputted on the UI and sends it to an api parsing service -> api parsing service formats all the data into the expected API objects and sends it to the writing service -> writing service sends it off to the api.
What I want to automatically validate is that the API response in every command is successful. Our services are broken out into interfaces like IApiParsingClient, IApiWriteClient, and I don't have an issue hard coding test data somewhere to do this. I need to learn how and where to start
157 replies
✅ Implementing IDisposable properly
I have a class I implemented IDisposable in which subscribes to an observable of a type. Example: subscribes to an incoming GenericMessage. I am running into an issue where when an instance of this class should be disposed, it's still alive intercepting data from another class that needs it. Here are my logs for visualization:
As you see my dispose is called but it's still alive. I am using the dispose design pattern as outlined in the IDisposable docs
26 replies
socket message queue questions
As I impl my own MQ, taking in everyone who has showed me example and such, I notice Channel<T> doesn't have a subscribe system like I thought it would (example from Akari used them). You have to constantly read on the Reader. I add a serialized packet to a collection to be handled for further processing to properly sort it. I think from research what I want is an ObservableCollection ?
3 replies