Lab 7 of 7: Object-Oriented Application Coding
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest.sln
Microsoft Visual Studio Solution File, Format Version 11.00 # Visual C# Express 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CS-CourseListTest", "CS-CourseListTest\CS-CourseListTest.csproj", "{3262D880-FF82-4BEC-9C89-16644BF03D74}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x86 = Debug|x86 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {3262D880-FF82-4BEC-9C89-16644BF03D74}.Debug|x86.ActiveCfg = Debug|x86 {3262D880-FF82-4BEC-9C89-16644BF03D74}.Debug|x86.Build.0 = Debug|x86 {3262D880-FF82-4BEC-9C89-16644BF03D74}.Release|x86.ActiveCfg = Release|x86 {3262D880-FF82-4BEC-9C89-16644BF03D74}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest.suo
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/bin/Debug/CS-CourseListTest.vshost.exe
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/bin/Debug/CS-CourseListTest.vshost.exe.manifest
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/bin/Release/CS-CourseListTest.exe
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/bin/Release/CS-CourseListTest.pdb
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/Course.cs
class Course { public Course(string id, string title, int creditHours, string description, string prerequisiteCourse) { this.CourseID = id; this.CourseTitle = title; this.CreditHours = creditHours; this.Description = description; this.PrerequisiteCourse = prerequisiteCourse; } public string CourseID; public string CourseTitle; public int CreditHours; public string Description; public string PrerequisiteCourse; }
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/CourseList.cs
class CourseList { public Course[] CourseArray = { new Course ("CIS 400", "OO Analysis & Design", 4, "Important class", "CIS 110") , new Course ("CIS 150A" , "VB.NET Programming", 4, "Good Introduction to programming", "CIS 100") , new Course ("CIS 150B", "C# Programming with labs", 4, "Follow-up to CIS 100", "CIS 100") }; public Course GetCourseByCourseID(string id) { // TODO - Add your code here } }
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/CourseListTest.cs
class CourseListTest { public static void Main(string[] args) { GetCourseByCourseIDTestWhenCourseExists(); GetCourseByCourseIDTestWhenCourseDoesNotExist(); } public static void GetCourseByCourseIDTestWhenCourseExists() { CourseList myCourseList = new CourseList(); Course myCourse = myCourseList.GetCourseByCourseID("CIS 400"); if (myCourse.CourseID != "CIS 400") System.Console.WriteLine("ERROR - GetCourseByCourseIDTestWhenCourseExists(): Returned CourseID Not equal (CIS 400)"); } public static void GetCourseByCourseIDTestWhenCourseDoesNotExist() { CourseList myCourseList = new CourseList(); Course myCourse = myCourseList.GetCourseByCourseID("CIS 101"); if (myCourse != null) System.Console.WriteLine("ERROR - GetCourseByCourseIDTestWhenCourseDoesNotExist(): should have returned null"); } }
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/CS-CourseListTest.csproj
Debug x86 8.0.30703 2.0 {3262D880-FF82-4BEC-9C89-16644BF03D74} Exe Properties CS_CourseListTest CS-CourseListTest v4.0 Client 512 x86 true full false bin\Debug\ DEBUG;TRACE prompt 4 x86 pdbonly true bin\Release\ TRACE prompt 4
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/CS-CourseListTest.csproj.user
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/obj/x86/Release/CS-CourseListTest.csproj.FileListAbsolute.txt
C:\Users\Osama A. Morad\AppData\Local\Temporary Projects\CS-CourseListTest\bin\Release\CS-CourseListTest.exe C:\Users\Osama A. Morad\AppData\Local\Temporary Projects\CS-CourseListTest\bin\Release\CS-CourseListTest.pdb C:\Users\Osama A. Morad\AppData\Local\Temporary Projects\CS-CourseListTest\obj\x86\Release\ResolveAssemblyReference.cache C:\Users\Osama A. Morad\AppData\Local\Temporary Projects\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.exe C:\Users\Osama A. Morad\AppData\Local\Temporary Projects\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.pdb C:\Online Classes\2 DeVry Courses\Dev\2011\CIS 339 - Take 2\Me\Delivery Week7 Content\Practices\CS-CourseListTest\CS-CourseListTest\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.exe C:\Online Classes\2 DeVry Courses\Dev\2011\CIS 339 - Take 2\Me\Delivery Week7 Content\Practices\CS-CourseListTest\CS-CourseListTest\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.pdb C:\Online Classes\2 DeVry Courses\Dev\2011\CIS 339 - Take 2\Me\Delivery Week7 Content\Practices\CS-CourseListTest-Shell\CS-CourseListTest\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.exe C:\Online Classes\2 DeVry Courses\Dev\2011\CIS 339 - Take 2\Me\Delivery Week7 Content\Practices\CS-CourseListTest-Shell\CS-CourseListTest\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.pdb C:\Online Classes\2 DeVry Courses\Dev\2011\CIS 339 - Take 2\Me\Delivery Week7 Content\Practices\CS-CourseListTest-Shell\CS-CourseListTest\CS-CourseListTest\obj\x86\Release\ResolveAssemblyReference.cache C:\Online Classes\2 DeVry Courses\Dev\2011\CIS 339 - Take 2\Me\Delivery Week7 Content\Practices\Week7 iLab Shells\CS-CourseListTest-Shell\CS-CourseListTest\CS-CourseListTest\obj\x86\Release\CS-CourseListTest.exe
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/obj/x86/Release/CS-CourseListTest.exe
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache
CS-CourseListTest-Shell/CS-CourseListTest/CS-CourseListTest/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CS-CourseListTest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("CS-CourseListTest")] [assembly: AssemblyCopyright("Copyright © Microsoft 2011")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("428552ae-2353-4377-8308-9d17140cd669")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]