public void Should_Factor_Multiple_Actions(AzDoBridgeIntent azDoBridgeIntent) { IAzDoBridgeAction action; var fac = AzDoBridgeActionFactory.TryGetAction(azDoBridgeIntent.ToString(), logger.Object, out action); fac.Should().BeTrue(); action.GetType().Should().Equals(typeof(AzDoBridgeIntent)); }
public static bool Is(this AzDoBridgeIntent intent, string name) { return(intent.ToString().Equals(name, StringComparison.OrdinalIgnoreCase)); }