public void SubmitButton_Click_ChannelWideIsSelected_SavesRelatedEntities(int serviceFeatureMapId, int featureId, int serviceId) { // Arrange SetFakesForSubmitButtonClickMethod(); SetPageControls(); SetUpRadTreeList(serviceFeatureMapId, featureId, serviceId); // Act _privateTestObject.Invoke(SubmitButtonClickMethodName, this, EventArgs.Empty); // Assert _privateTestObject.ShouldSatisfyAllConditions( () => _isSecurityGroupSaved.ShouldBeTrue(), () => _savedSecurityGroup.ShouldNotBeNull(), () => { if (serviceFeatureMapId == 1) { _savedSecurityGroupPermission.ShouldNotBeNull(); } else { _savedSecurityGroupPermission.ShouldBeNull(); } }, () => RedirectUrl.ShouldNotBeNullOrWhiteSpace(), () => RedirectUrl.ShouldContain(DefaultPage)); }