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

            Assert.AreEqual(removedPlacement.Id, -1);
        }
Exemplo n.º 2
0
 public PlacementServiceTest()
 {
     TecAppContext    = new TecAppContext();
     PlacementService = new PlacementService(TecAppContext);
     OpeningsService  = new OpeningsService.OpeningsService(TecAppContext);
     CandidateService = new EmployeeService.CandidateService(TecAppContext);
 }
Exemplo 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);
        }
Exemplo n.º 4
0
        public void Y_TestAddedPlacement()
        {
            var addedPlacement = PlacementService.GetPlacementFromId(Placement.Id);

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