コード例 #1
0
        public async Task And_Has_Started_The_Payment_Status_Is_Mapped_To_Apprenticeship_Status(PaymentStatus paymentStatus, ApprenticeshipStatus expected)
        {
            //Arrange
            var apprenticeship = CreateApprenticeship();

            apprenticeship.PaymentStatus = paymentStatus;
            apprenticeship.StartDate     = DateTime.UtcNow.AddMonths(-2);
            var mapper = new ApprenticeshipToApprenticeshipDetailsMapper(new CurrentDateTime());

            //Act
            var actual = await mapper.Map(apprenticeship);

            //Assert
            Assert.AreEqual(expected, actual.ApprenticeshipStatus);
        }
コード例 #2
0
 public ApprenticeshipStatusTestsFixture WithPaymentStatus(PaymentStatus paymentStatus)
 {
     _apprenticeship.PaymentStatus = paymentStatus;
     return(this);
 }