/// <summary>
 /// Initializes a new instance of the <see cref="DashboardDetailsManager" /> class.
 /// </summary>
 /// <param name="alertData">The alerts details data.</param>
 public DashboardDetailsManager(IAlertData alertData)
 {
     this.alertData = alertData;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertDataTests" /> class.
 /// </summary>
 public AlertDataTests()
 {
     this.alertRepository = new Mock<IAlertRepository>();
     this.visitorRepository = new Mock<IVisitorRepository>();
     this.guestRepository = new Mock<IGuestRepository>();
     this.crewRepository = new Mock<ICrewRepository>();
     this.shipRepository = new Mock<IShipRepository>();
     this.shipTimeRepository = new Mock<IShipTimeRepository>();
     this.applicationSettings = new Mock<IApplicationSettings>();
     this.embarkStatsRepository = new Mock<IEmbarkationStatisticsRepository>();
     this.alertData = new AlertData(this.alertRepository.Object, this.visitorRepository.Object, this.guestRepository.Object, this.crewRepository.Object, this.shipRepository.Object, this.shipTimeRepository.Object, this.applicationSettings.Object, this.embarkStatsRepository.Object);
     Common.Dependencies.Register();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertManager"/> class.
 /// </summary>
 /// <param name="alertRepository">The alert data.</param>
 public AlertManager(IAlertData alertRepository)
 {
     this.alertRepository = alertRepository;
 }