public void SetUp()
        {
            _currentDateTime = new Mock <ICurrentDateTime>();
            _currentDateTime.Setup(x => x.Now).Returns(new DateTime(2017, 3, 1));

            _apprenticeships = new List <Apprenticeship>
            {
                new Apprenticeship
                {
                    Id               = 006,
                    FirstName        = "Live",
                    PaymentStatus    = PaymentStatus.Active,
                    StartDate        = _currentDateTime.Object.Now.AddMonths(-2),
                    ULN              = "6666666666",
                    TransferSenderId = 123
                },
                new Apprenticeship
                {
                    Id                    = 007,
                    FirstName             = "WaitingToStart",
                    PaymentStatus         = PaymentStatus.Active,
                    StartDate             = _currentDateTime.Object.Now.AddMonths(2),
                    DataLockCourseTriaged = true,
                    ULN                   = "7777777777"
                }
            };
            _sut = new Api.Orchestrators.Mappers.ApprenticeshipFilterService(new FacetMapper(_currentDateTime.Object));
        }
예제 #2
0
        public void SetUp()
        {
            _sut = new Api.Orchestrators.Mappers.ApprenticeshipFilterService(new FacetMapper(new StubCurrentDateTime()));

            _apprenticeships = new List <Apprenticeship>
            {
                new Apprenticeship
                {
                    Id            = 006,
                    FirstName     = "Chris",
                    LastName      = "Foster",
                    PaymentStatus = PaymentStatus.Active,
                    StartDate     = DateTime.Now.AddDays(-60),
                    ULN           = "1112223330"
                },
                new Apprenticeship
                {
                    Id                    = 007,
                    FirstName             = "Chris",
                    LastName              = "Froberg",
                    PaymentStatus         = PaymentStatus.Active,
                    StartDate             = DateTime.Now.AddMonths(2),
                    DataLockCourseTriaged = true,
                    ULN                   = "1112223331"
                },
                new Apprenticeship
                {
                    Id                    = 008,
                    FirstName             = "Mathias",
                    LastName              = "Hayashi",
                    PaymentStatus         = PaymentStatus.Active,
                    StartDate             = DateTime.Now.AddMonths(2),
                    DataLockCourseTriaged = true,
                    ULN                   = "1112223332"
                }
            };
        }
 public void SetUp()
 {
     _sut = new Api.Orchestrators.Mappers.ApprenticeshipFilterService(new FacetMapper(Mock.Of <ICurrentDateTime>()));
 }