-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
34 lines (28 loc) · 926 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
namespace Csharp_labs
{
class Program
{
static void Main(string[] args)
{
try
{
Test.TestWorkerComission();
Test.TestWorkerHour();
Test.TestFactory();
}
catch (Exception e)
{
Console.WriteLine("Some Test was not passed\nTest LOG:\n");
Console.WriteLine(e.Message);
}
Console.WriteLine("All tests was passed successfully\n\n\n");
WorkerComission Pyotr = new WorkerComission("Pytor Solo", Sex.woman, 10000, 0.05);
WorkerHour Semyon = new WorkerHour("Semyon So", Sex.man, 1500, 2150, 150);
Factory Jojo = new Factory("Jojo INC.", "Anime");
Jojo.RecruitMemberStaff(Pyotr);
Jojo.RecruitMemberStaff(Semyon);
Jojo.SimulateWork(32);
}
}
}