Example #1
0
        public async Task Then_The_Available_Dates_Are_Returned()
        {
            //Act
            var result = await _service.GetAvailableDates(_accountLegalEntityId);

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(_expectedAvailableDates, result.AvailableDates);
        }
        public async Task <GetAvailableDatesResult> Handle(GetAvailableDatesQuery request, CancellationToken cancellationToken)
        {
            var availableDates = await _fundingRulesService.GetAvailableDates(request.AccountLegalEntityId);

            return(new GetAvailableDatesResult
            {
                AvailableDates = availableDates.AvailableDates
            });
        }