public ExportSportshallsTableCommand(IPdfSportshallsTableExporter pdfWriter, ISportshallService sportshallService)
        {
            Guard.WhenArgument(pdfWriter, "Pdf writer can not be null!").IsNull().Throw();
            Guard.WhenArgument(sportshallService, "Sportscard service can not be null!").IsNull().Throw();

            this.pdfWriter         = pdfWriter;
            this.sportshallService = sportshallService;
        }
예제 #2
0
 public GetSportshallVisitsFromToCommand(ISportscardFactory sportscardFactory, ISportshallService sportshallService) : base(sportscardFactory)
 {
     Guard.WhenArgument(sportshallService, "Sportshall service can not be null!").IsNull().Throw();
     this.sportshallService = sportshallService;
 }
예제 #3
0
 public DeleteSportshallCommand(ISportscardFactory sportscardFactory, ISportshallService sportshallService)
     : base(sportscardFactory)
 {
     Guard.WhenArgument(sportshallService, "SportshallService  can not be null.").IsNull().Throw();
     this.sportshallService = sportshallService;
 }
예제 #4
0
 public GetMostVisitedSportshallCommand(ISportscardFactory sportscardFactory, ISportshallService sportshallService) : base(sportscardFactory)
 {
     Guard.WhenArgument(sportshallService, "Sportshall service can not ne null.").IsNull().Throw();
     this.sportshallService = sportshallService;
 }
 public ListAllSportshallsCommand(ISportshallService sportshallService)
 {
     Guard.WhenArgument(sportshallService, "Sportshall service can not be null!").IsNull().Throw();
     this.sportshallService = sportshallService;
 }