コード例 #1
0
            /// <summary>
            /// Constructor to set up test code.
            /// </summary>
            public Methods()
            {
                mockProjectName = "Mock Test Project Name";

                mockProjectLines = new List <IProjectLine>
                {
                    new ProjectLine {
                        Raw = "Raw Line 1", Translation = "Translated Line 1", Completed = false, Marked = true
                    },
                    new ProjectLine {
                        Raw = "Raw Line 2", Translation = "Translated Line 2", Completed = false, Marked = false
                    },
                    new ProjectLine {
                        Raw = "Raw Line 3", Translation = "Translated Line 3", Completed = true, Marked = true
                    },
                    new ProjectLine {
                        Raw = "Raw Line 4", Translation = "Translated Line 4", Completed = false, Marked = false
                    },
                    new ProjectLine {
                        Raw = "Raw Line 5", Translation = "Translated Line 5", Completed = true, Marked = false
                    },
                    new ProjectLine {
                        Raw = "Raw Line 6", Translation = "Translated Line 6", Completed = true, Marked = true
                    },
                    new ProjectLine {
                        Raw = "Raw Line 7", Translation = "Translated Line 7", Completed = true, Marked = false
                    },
                    new ProjectLine {
                        Raw = "Raw Line 8", Translation = "Translated Line 8", Completed = false, Marked = true
                    },
                    new ProjectLine {
                        Raw = "Raw Line 9", Translation = "Translated Line 9", Completed = true, Marked = true
                    },
                    new ProjectLine {
                        Raw = "Raw Line 10", Translation = "Translated Line 10", Completed = false, Marked = false
                    }
                };

                projectDataFactory = new ProjectDataFactory();
            }
コード例 #2
0
 /// <summary>
 /// Creates Translation Data Factory with Project Data Factory.
 /// </summary>
 /// <param name="projectDataFactory">Project Data Factory used to construct Project Data.</param>
 /// <param name="subTranslationDataFactory">Project Data Factory used to construct Sub Translation Data.</param>
 public TranslationDataFactory(IProjectDataFactory projectDataFactory, ISubTranslationDataFactory subTranslationDataFactory)
 {
     _projectDataFactory        = projectDataFactory ?? throw new System.ArgumentNullException(nameof(projectDataFactory));
     _subTranslationDataFactory = subTranslationDataFactory ?? throw new System.ArgumentNullException(nameof(subTranslationDataFactory));
 }
コード例 #3
0
            /// <summary>
            /// Constructor to set up test code.
            /// </summary>
            public Exceptions()
            {
                mockProjectName = "Mock Test Project Name";

                projectDataFactory = new ProjectDataFactory();
            }