Ejemplo n.º 1
0
            public GetApprenticeshipUpdateHandlerTests_fixture()
            {
                _autofixture = new Fixture();

                _apprenticeshipId = 1;
                _request          = new GetApprenticeshipUpdateQuery(_apprenticeshipId, Types.ApprenticeshipUpdateStatus.Pending);

                _db = new ProviderCommitmentsDbContext(new DbContextOptionsBuilder <ProviderCommitmentsDbContext>()
                                                       .UseInMemoryDatabase(Guid.NewGuid().ToString()).EnableSensitiveDataLogging().Options);
                _handler = new GetApprenticeshipUpdateQueryHandler(new Lazy <ProviderCommitmentsDbContext>(() => _db));
            }
Ejemplo n.º 2
0
 internal GetApprenticeshipUpdateHandlerTests_fixture WithNullStatus()
 {
     _request = new GetApprenticeshipUpdateQuery(_apprenticeshipId, null);
     return(this);
 }
Ejemplo n.º 3
0
 public GetApprenticeshipUpdateHandlerTests_fixture WithNoMatchingApprenticeshipUpdatesForStatus()
 {
     _request = new GetApprenticeshipUpdateQuery(_apprenticeshipId, Types.ApprenticeshipUpdateStatus.Approved);
     return(this);
 }
Ejemplo n.º 4
0
 public GetApprenticeshipUpdateHandlerTests_fixture WithRejectedStatus()
 {
     _request = new GetApprenticeshipUpdateQuery(_apprenticeshipId, Types.ApprenticeshipUpdateStatus.Rejected);
     return(this);
 }