示例#1
0
 public void SetUp()
 {
     container         = TagCloud.Program.GetContainer();
     pathToReadWords   = SetUpMethods.GetPathToWordsToRead();
     pathToBoringWords = SetUpMethods.GetPathToBoringWords();
     SetUpMethods.CreateFile(pathToReadWords);
     SetUpMethods.WriteLinesInFile(pathToReadWords, "i", "I", "i", "I", "Boat", "BoaT", "BoAt", "BOAT", "in",
                                   "IN");
     SetUpMethods.CreateFile(pathToBoringWords);
     SetUpMethods.WriteLinesInFile(pathToBoringWords, "in");
     imageSettings = new ImageSettings(300, 300, "Arial", "ShadesOfPink");
 }
示例#2
0
 public void SetUp()
 {
     graphics          = Graphics.FromImage(new Bitmap(300, 300));
     font              = new Font("Arial", 24, FontStyle.Bold);
     container         = TagCloud.Program.GetContainer();
     pathToReadWords   = SetUpMethods.GetPathToWordsToRead();
     pathToBoringWords = SetUpMethods.GetPathToBoringWords();
     SetUpMethods.CreateFile(pathToReadWords);
     SetUpMethods.WriteLinesInFile(pathToReadWords, "i", "I", "i", "I", "Boat", "BoaT", "BoAt", "BOAT", "in",
                                   "IN");
     SetUpMethods.CreateFile(pathToBoringWords);
     SetUpMethods.WriteLinesInFile(pathToBoringWords, "in");
     imageSettings = new ImageSettings(300, 300, "Arial", "ShadesOfPink");
 }
示例#3
0
 public void SetUp()
 {
     pathToReadWords   = SetUpMethods.GetPathToWordsToRead();
     pathToBoringWords = SetUpMethods.GetPathToBoringWords();
     SetUpMethods.CreateFile(pathToBoringWords);
     SetUpMethods.WriteLinesInFile(pathToBoringWords, "in");
     SetUpMethods.CreateFile(pathToReadWords);
     SetUpMethods.WriteLinesInFile(pathToReadWords, "i ", "   I", "i     ", "I", "Boat  ", "   BoaT", "BoAt",
                                   "BOAT", "in", "IN");
     container            = TagCloud.Program.GetContainer();
     wordsHandler         = container.Resolve <IWordsHandler>();
     fileReader           = container.Resolve <IFileReader>();
     tagCollectionFactory = container.Resolve <ITagCollectionFactory>();
     imageSettings        = new ImageSettings(300, 300, "Arial", "ShadesOfPink");
 }