Open jthompsonnait opened 2 years ago
public class TrackSelection
{
public int TrackId {get; set;}
public string SongName {get; set;}
public string AlbumTitle{get; set;}
public string ArtistName{get; set;}
public int Milliseconds {get; set;}
public decimal Price {get; set;}
}
public class PlaylistTrackInfo
{
public int TrackId {get; set;}
public int TrackNumber {get; set;}
public string SongName {get; set;}
public int Milliseconds {get; set;}
}
No model class, individual parameters
for the Remove Tracks functionality, the SelectedTrack and TrackId will be required for transactional processing
for the Move Tracks functionality, the TrackId, TrackNumber and TrackInput will be required for transactional processing
public class PlaylistTrackTRX
{
public bool SelectedTrack {get; set;}
public int TrackId {get; set;}
public int TrackNumber {get; set;}
public int TrackInput {get; set;}
public string WhoKnowWhat {get; set;}
}
Added WhoKnowWhat to PlaylistTrackTRX
Examples
This is the the Assignment that will be completed when the tasks have been checked
Remove Clear Table Create Data Model Employee.
These are all the classes that will be used for the form. This holds all the public data that would be used in the program
public class Employee
{
public int Employee_ID {get; set;}
public string First_Name {get; set;}
public string Last_Name {get set;}
public int HomePhone {get; set;}
}
These are the skills that we would be registering the employees by
public class EmployeeSkills
{
public int Employee_ID {get; set;}
public string Skill {get; set;}
public int Skill_ID {get; set;}
public int Hourly_Wage {get; set;}
public int YearsOfExperience {get; set;}
}
In order to register a new Employee we would need to register the employee with at least one skill and years of Experience from 1-50 inclusively
public class Reg_Employee
{
public int Skill_ID {get; set;}
public int Level {get; set;}
public int Hourly_Wage {get; set;}
public int YearsOfExperience {get; set;}
}
Remove the following fields from the Reg_Employee public int Employee_ID {get; set;} public string First_Name {get; set;} public string Last_Name {get set;} public int HomePhone {get; set;}
Add the following field to Reg_Employee Level
This comment outlines all the business standards and rules that have been set by the business. It discusses all the rules that must be followed when registering an employee or registering an employee's skill
When registering an employee the employee must not already exist in the table, the employee must have at least one skill and must have a Year of experience between one and fifty inclusively.
- check if the employee Exists
- if the employee exists throw an Exception
- If the employee doesn't exist
- check if the Employee has at least one skill
- check If the Employee has an hourly wage
- check if the Employee has Years of experience in the skill
- if the Employee has all these attributes
- Register the Employee and Their skill
Added workflow for exceptions
Changes
Added unit test