C# Class EA.Iws.Domain.NotificationApplication.NotificationApplicationFactory

Show file Open project: EnvironmentAgency/prsd-iws

Public Methods

Method Description
CreateLegacy ( NotificationType notificationType, UKCompetentAuthority competentAuthority, int number ) : Task
CreateNew ( NotificationType notificationType, UKCompetentAuthority competentAuthority ) : Task
NotificationApplicationFactory ( IUserContext userContext, INotificationNumberGenerator numberGenerator ) : System

Private Methods

Method Description
IsNumberValid ( UKCompetentAuthority competentAuthority, int number ) : bool

Method Details

CreateLegacy() public method

public CreateLegacy ( NotificationType notificationType, UKCompetentAuthority competentAuthority, int number ) : Task
notificationType NotificationType
competentAuthority UKCompetentAuthority
number int
return Task

CreateNew() public method

public CreateNew ( NotificationType notificationType, UKCompetentAuthority competentAuthority ) : Task
notificationType NotificationType
competentAuthority UKCompetentAuthority
return Task

NotificationApplicationFactory() public method

public NotificationApplicationFactory ( IUserContext userContext, INotificationNumberGenerator numberGenerator ) : System
userContext IUserContext
numberGenerator INotificationNumberGenerator
return System