Esempio n. 1
0
 public HowApprenticeshipWillBeDeliveredSteps(TestContext context)
 {
     _context        = context;
     _apprentice     = _fixture.Create <Apprentice>();
     _apprenticeship = _fixture.Create <Apprenticeship>();
     _apprentice.AddApprenticeship(_apprenticeship);
 }
Esempio n. 2
0
        public GetApprenticeshipsSteps(TestContext context)
        {
            _context = context;

            _apprentice = _fixture.Build <Apprentice>()
                          .Create();
            _apprentice.AddApprenticeship(_fixture.Create <Apprenticeship>());
        }
Esempio n. 3
0
        public ConfirmApprenticeshipSteps(TestContext context)
        {
            _context = context;

            _apprentice     = _fixture.Create <Apprentice>();
            _apprenticeship = _fixture.Create <Apprenticeship>();
            _apprentice.AddApprenticeship(_apprenticeship);
        }
        public ConfirmRolesAndResponsibilitiesSteps(TestContext context)
        {
            _context = context;

            _apprentice     = _fixture.Create <Apprentice>();
            _apprenticeship = _fixture.Create <Apprenticeship>();
            _apprentice.AddApprenticeship(_apprenticeship);
        }
Esempio n. 5
0
        public ConfirmTrainingProviderandOrEmployerSteps(TestContext context)
        {
            _context = context;

            _apprentice     = _fixture.Create <Apprentice>();
            _apprenticeship = _fixture.Create <Apprenticeship>();
            _apprentice.AddApprenticeship(_apprenticeship);
        }
Esempio n. 6
0
 public async Task GivenTheApprenticeshipExistsAndItSAssociatedWithThisApprentice()
 {
     _apprentice.AddApprenticeship(_apprenticeship);
     _context.DbContext.Apprentices.Add(_apprentice);
     await _context.DbContext.SaveChangesAsync();
 }