public UsersAwardsManager(IUsersAwardsStorage usersAwardsStorage, ISaver userAwardSaver, IUsersManager usersManager, IAwardsManager awardsManager) { UsersAwardsStorage = usersAwardsStorage; UsersAwardsSaver = userAwardSaver; UsersManager = usersManager; AwardsManager = awardsManager; UsersManager.OnDeleted += DeleteAllByUser; AwardsManager.OnDeleted += DeleteAllByAward; }
static ConsolePL() { UsersManager = Dependencies.Dependencies.UsersManager; AwardsManager = Dependencies.Dependencies.AwardsManager; UsersAwardsManager = Dependencies.Dependencies.UsersAwardsManager; }
public AwardsActionsManager(IAwardsManager awardsManager) { _awardManager = awardsManager ?? throw new ArgumentNullException(nameof(awardsManager)); }