コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerNotificationService" /> class
 /// </summary>
 /// <param name="custSvc">Customer service</param>
 /// <param name="custNotifRepo">Customer Repository</param>
 public CustomerNotificationService(ICustomerService custSvc, ICustomerNotificationRepository custNotifRepo)
 {
     this.custService         = custSvc;
     this.custNotifRepository = custNotifRepo;
 }
コード例 #2
0
        public static ICustomerNotificationRepository GetNotificationRepo()
        {
            if (notifRepo == null)
                notifRepo = new CustomerNotificationRepository();

            return notifRepo;
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerService" /> class
 /// </summary>
 /// <param name="custNotifRepo">Customer repository</param>
 /// <param name="serviceFactory">Service Factory</param>
 public CustomerService(ICustomerNotificationRepository custNotifRepo, IServiceFactory serviceFactory)
 {
     this.custNotifRepository = custNotifRepo;
     this.serviceFactory      = serviceFactory;
 }