/ Published in: C#
                    
                                        
The code to verify that a method was called.
The this.mockProvider.Verify verifies that GetBiAutoProcessConfigByKeys is called.
                The this.mockProvider.Verify verifies that GetBiAutoProcessConfigByKeys is called.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
[TestMethod]
public void GetProcessConfigSettingsByKeys_Test()
{
// Setup
this.mockProvider.Setup(x => x.GetBiAutoProcessConfigByKeys(123, 456, It.IsAny<int>()))
.Returns(automationConfigurationSetting)
.Verifiable();
// Action
var result = target.GetProcessConfigSettingsByKeys(123, 456, null);
// Assert
this.mockProvider.Verify(x => x.GetBiAutoProcessConfigByKeys(123, 456, null));
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                