Hi there,
So I have been looking at some just mock examples but can't put together how we would verify that calling a particular method did something, i.e. called another method. Here is the snippet I want to test.
I want to make sure that contianer.RegisterInstance is called when Initialize is called. I can't test a variable cause it isn't like it stores something somewhere... Is there an example of this somewhere?
Thanks!!!
So I have been looking at some just mock examples but can't put together how we would verify that calling a particular method did something, i.e. called another method. Here is the snippet I want to test.
public void Initialize() { //Initialize the vendor mapping module container.RegisterInstance<VendorMappingViewModel>(new VendorMappingViewModel(eventAggregator));I want to make sure that contianer.RegisterInstance is called when Initialize is called. I can't test a variable cause it isn't like it stores something somewhere... Is there an example of this somewhere?
Thanks!!!