Exemplo n.º 1
0
        public CreateReportWindow(StudentBasedProxy student, IReportsCreator reportsCreator)
        {
            InitializeComponent();
            this.student = student;

            reportCreators = CreateReportCreators(reportsCreator);
            ComboBoxSelectedReport.ItemsSource = reportCreators.Keys;
        }
Exemplo n.º 2
0
 private Dictionary <string, Func <StudentBasedProxy, FileWithContent> > CreateReportCreators(IReportsCreator reportsCreator)
 {
     return(new Dictionary <string, Func <StudentBasedProxy, FileWithContent> > {
         { "Академ", reportsCreator.CreateAcadem },
         { "Диплом", reportsCreator.CreateDiploma },
         { "Приложение", reportsCreator.CreateDiplomaSupplement }
     });
 }
Exemplo n.º 3
0
 public CreateDiplomaSupplementReportFunction(IDatabaseAuthorizer databaseAuthorizer, IReportsCreator reportsCreator) : base(databaseAuthorizer)
 {
     this.reportsCreator = reportsCreator;
 }
 public CreateAcademReportFunction(IDatabaseAuthorizer databaseAuthorizer, IReportsCreator reportsCreator) : base(databaseAuthorizer)
 {
     this.reportsCreator = reportsCreator;
 }
Exemplo n.º 5
0
 public void SetUp()
 {
     reportsCreator = A.Fake <IReportsCreator>();
 }