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"); }
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"); }
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"); }