Esempio n. 1
0
        public void Z_RemovePlacementTest()
        {
            PlacementService.RemovePlacement(Placement);
            var removedPlacement = PlacementService.GetPlacementFromId(Placement.Id);

            Assert.AreEqual(removedPlacement.Id, -1);
        }
Esempio n. 2
0
 public PlacementServiceTest()
 {
     TecAppContext    = new TecAppContext();
     PlacementService = new PlacementService(TecAppContext);
     OpeningsService  = new OpeningsService.OpeningsService(TecAppContext);
     CandidateService = new EmployeeService.CandidateService(TecAppContext);
 }
Esempio n. 3
0
        public void AddPlacementTest()
        {
            var random = new Random();

            Opening   = OpeningsService.GetAllOpenings()[random.Next(100)];
            Candidate = CandidateService.GetAllCandidates()[random.Next(100)];
            var newPlacement = new Placement()
            {
                Opening          = Opening,
                Candidate        = Candidate,
                CandidateId      = Candidate.Id,
                OpeningId        = Opening.Id,
                Timestamp        = DateTime.Now,
                TotalHoursWorked = random.Next()
            };

            Placement = PlacementService.AddPlacementToCandidate(newPlacement);
        }
Esempio n. 4
0
        public void Y_TestAddedPlacement()
        {
            var addedPlacement = PlacementService.GetPlacementFromId(Placement.Id);

            Assert.AreEqual(addedPlacement.TotalHoursWorked, Placement.TotalHoursWorked);
        }
Esempio n. 5
0
 public void GetAllPlacementsTest()
 {
     var placements = PlacementService.GetAllPlacements();
 }