public CitiFileImportInteractorTests() { var serviceLocator = new ServiceLocatorForIntegrationTests(); _returnsSeriesDataGateway = serviceLocator.GetService <IReturnsSeriesDataGateway>(); _monthlyReturnsDataGateway = serviceLocator.GetService <IMonthlyReturnsDataGateway>(); }
public ReturnSeriesDataGatewayTests() { var serviceLocator = new ServiceLocatorForIntegrationTests(); _returnsSeriesDataGateway = serviceLocator.GetService <IReturnsSeriesDataGateway>(); _monthlyReturnsDataGateway = serviceLocator.GetService <IMonthlyReturnsDataGateway>(); }
public TestHelper() { _serviceLocator = new ServiceLocatorForIntegrationTests(); _returnsSeriesDataGateway = _serviceLocator.GetService <IReturnsSeriesDataGateway>(); _monthlyReturnsDataGateway = _serviceLocator.GetService <IMonthlyReturnsDataGateway>(); }
public void GetAllEntitiesShouldReturnCorrectNumberOfEntities() { var serviceLocator = new ServiceLocatorForIntegrationTests(); var entityDataRepository = serviceLocator.GetService <IInvestmentVehicleDataGateway>(); var results = entityDataRepository.GetAllEntities(); Assert.Equal(5, results.Length); }
public TestHelper() { var serviceLocator = new ServiceLocatorForIntegrationTests(); _mutualFundEvenDataTableGateway = serviceLocator.GetService <IMutualFundEvenDataTableGateway>(); _mutualFundDomainEventRepository = new MutualFundDomainEventRepository( _mutualFundEvenDataTableGateway, new ClockStub(new DateTime(2010, 1, 1))); }
private CitiMonthlyReturnsDataFileRecord[] ReadTestFile() { var file = GetNetReturnsTestFilePath(); var serviceLocator = new ServiceLocatorForIntegrationTests(); var reader = serviceLocator.GetService <ICitiReturnsFileReader>(); var results = reader.ReadFile(file); return(results); }
public void GetAllEntitiesShouldReturnMapAllColumnsToProperties() { var serviceLocator = new ServiceLocatorForIntegrationTests(); var entityDataRepository = serviceLocator.GetService <IInvestmentVehicleDataGateway>(); var results = entityDataRepository.GetAllEntities(); var target = results.FirstOrDefault(r => r.InvestmentVehicleNumber == 100); Assert.NotNull(target); Assert.Equal('P', target.InvestmentVehicleTypeCode); Assert.Equal("Portfolio 100 - Large", target.Name); }