public void WhenIHaveRequestedToGetThatCompany()
 {
     hc1 = ClientProxy.Instance.GetHiringCompany(id1);
 }
 public void WhenIHaveRequestedToHaveThatCompanyDetailes()
 {
     hc2 = ClientProxy.Instance.GetHiringCompany(id2);
 }
示例#3
0
        public void LoadDB(int threadId)
        {
            HiringCompany hc = ClientProxy.Instance.GetHiringCompanyForThr(threadId);

            Employee testEmp = new Employee();

            testEmp.Name                = "Milica";
            testEmp.Surname             = "Kapetina";
            testEmp.Username            = "******";
            testEmp.Password            = "******";
            testEmp.Position            = PositionEnum.CEO.ToString();
            testEmp.StartTime           = "10.00";
            testEmp.EndTime             = "17.00";
            testEmp.Login               = false;
            testEmp.Email               = "*****@*****.**";
            testEmp.PasswordUpadateDate = DateTime.Now;
            testEmp.HiringCompanyId     = hc;

            ClientProxy.Instance.AddEmployee(testEmp);

            Employee testEmp2 = new Employee();

            testEmp2.Name                = "Natasa";
            testEmp2.Surname             = "Subic";
            testEmp2.Username            = "******";
            testEmp2.Password            = "******";
            testEmp2.Position            = PositionEnum.PO.ToString();
            testEmp2.StartTime           = "09.00";
            testEmp2.EndTime             = "16.00";
            testEmp2.Login               = false;
            testEmp2.Email               = "*****@*****.**";
            testEmp2.PasswordUpadateDate = DateTime.Now;
            testEmp2.HiringCompanyId     = hc;

            ClientProxy.Instance.AddEmployee(testEmp2);

            Employee testEmp3 = new Employee();

            testEmp3.Name                = "Dusan";
            testEmp3.Surname             = "Jeftic";
            testEmp3.Username            = "******";
            testEmp3.Password            = "******";
            testEmp3.Position            = PositionEnum.HR.ToString();
            testEmp3.StartTime           = "10.15";
            testEmp3.EndTime             = "17.15";
            testEmp3.Login               = false;
            testEmp3.Email               = "*****@*****.**";
            testEmp3.PasswordUpadateDate = DateTime.Now;
            testEmp3.HiringCompanyId     = hc;

            ClientProxy.Instance.AddEmployee(testEmp3);

            Employee testEmp4 = new Employee();

            testEmp4.Name                = "Marko";
            testEmp4.Surname             = "Jelaca";
            testEmp4.Username            = "******";
            testEmp4.Password            = "******";
            testEmp4.Position            = PositionEnum.CEO.ToString();
            testEmp4.StartTime           = "09.15";
            testEmp4.EndTime             = "16.15";
            testEmp4.Login               = false;
            testEmp4.Email               = "*****@*****.**";
            testEmp4.PasswordUpadateDate = DateTime.Now;
            testEmp4.HiringCompanyId     = hc;

            ClientProxy.Instance.AddEmployee(testEmp4);

            //HiringCompanyData.OutsourcingCompany oc = new HiringCompanyData.OutsourcingCompany();
            //oc.Name = "OC1";


            //bool ret = ClientProxy.Instance.AddOutsourcingCompany(oc);

            //HiringCompany hCompany = ClientProxy.Instance.GetHiringCompany(threadId);
            //HiringCompanyData.OutsourcingCompany oCompany = ClientProxy.Instance.GetOutsourcingCompany("OC1");


            //ClientProxy.Instance.AddPartnershipToDB(hCompany, oCompany);

            //Project p = new Project();
            //p.Name = "P1";
            //p.Description = "Opis projekta";
            //p.Company = oCompany;
            //p.EndDate = DateTime.Now;
            //p.Ended = false;
            //p.HiringCompany = hCompany;
            //p.ProductOwner = ClientProxy.Instance.GetEmployee("naci", "naci");
            //p.Progress = 40;
            //p.ProjectState = ProjectState.Accepted;
            //p.StartDate = DateTime.Now;
            //p.Team = null;

            //ClientProxy.Instance.AddProjectDefinition(p);

            //Project p2 = new Project();
            //p2.Name = "P2";
            //p2.Description = "Opis projekta 2";
            //p2.Company = oCompany;
            //p2.EndDate = DateTime.Now;
            //p2.Ended = false;
            //p2.HiringCompany = hCompany;
            //p2.ProductOwner = ClientProxy.Instance.GetEmployee("naci", "naci");
            //p2.Progress = 40;
            //p2.ProjectState = ProjectState.Accepted;
            //p2.StartDate = DateTime.Now;
            //p2.Team = null;

            //ClientProxy.Instance.AddProjectDefinition(p2);

            //UserStory us1 = new UserStory();
            //us1.Description = "Opis Us1";
            //us1.Name = "US1";
            //us1.Progress = 50;
            //us1.Project = ClientProxy.Instance.GetProject("P1");
            //us1.UserStoryState = UserStoryState.Pending;

            //ClientProxy.Instance.AddUserStory(us1);

            //UserStory us2_1 = new UserStory();
            //us2_1.Description = "Opis Us2_1";
            //us2_1.Name = "US2_1";
            //us2_1.Progress = 50;
            //us2_1.Project = ClientProxy.Instance.GetProject("P2");
            //us2_1.UserStoryState = UserStoryState.Pending;

            //ClientProxy.Instance.AddUserStory(us2_1);

            //UserStory us2_2 = new UserStory();
            //us2_2.Description = "Opis Us2_2";
            //us2_2.Name = "US2_2";
            //us2_2.Progress = 50;
            //us2_2.Project = ClientProxy.Instance.GetProject("P2");
            //us2_2.UserStoryState = UserStoryState.Pending;

            //ClientProxy.Instance.AddUserStory(us2_2);
        }
 //[TestFixtureSetUp]
 public void SetupTest()
 {
     this.prUnderTest   = new Partnership();
     hiringCompany      = new HiringCompany();
     outsourcingCompany = new OutsourcingCompany();
 }
示例#5
0
 public void GivenIHaveOptedForOneOutsourcingCompany()
 {
     oc1 = ClientProxy.Instance.GetOutsourcingCompany("DMS NS");
     hc1 = ClientProxy.Instance.GetHiringCompany(1);
 }
示例#6
0
 //[TestFixtureSetUp]
 public void SetupTest()
 {
     this.hcUnderTest = new HiringCompany();
 }
 public void GivenIHaveChosenBothProjectAndOutsourcingCompany()
 {
     pr = ClientProxy.Instance.GetProject("P1");
     hc = ClientProxy.Instance.GetHiringCompany(1);
     oc = ClientProxy.Instance.GetOutsourcingCompany("DMS NS");
 }