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

            _apprentice = _fixture.Build <Apprentice>()
                          .Create();
            _apprentice.AddApprenticeship(_fixture.Create <Apprenticeship>());
        }
示例#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);
        }
示例#5
0
        public ConfirmTrainingProviderandOrEmployerSteps(TestContext context)
        {
            _context = context;

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