public CompanyLifecycleProcess() { Actions = new IYbpActionDefinition[] { new YbpFirstActionDefinition <CreateCompanyAction>(), new YbpActionDefinition <UpdateCompanyAction>() }; }
public UserRegistrationProcess() { Actions = new IYbpActionDefinition[] { new YbpFirstActionDefinition <CreateUserAction>(), new YbpAutomaticActionDefinition <SendInvitation> { NeedsToBeExecuted = flags => flags[Flags.NeedSendInvitation], MayNotBeExecuted = flags => flags.AlreadyExecuted <SendInvitation>() } }; }