Пример #1
0
        public GetAssetDeveloperUseCaseAcceptanceTests()
        {
            var assetRegister = new AssetRegister();

            _createAssetRegisterVersionUseCase = assetRegister.Get <ICreateAssetRegisterVersionUseCase>();
            _classUnderTest = assetRegister.Get <IGetAssetDevelopersUseCase>();

            var assetRegisterContext = assetRegister.Get <AssetRegisterContext>();

            assetRegisterContext.Database.Migrate();
        }
        public CalculateAssetAggregatesUseCaseAcceptanceTests()
        {
            var assetRegister = new AssetRegister();

            _createAssetRegisterVersionUseCase = assetRegister.Get <ICreateAssetRegisterVersionUseCase>();
            _classUnderTest = assetRegister.Get <ICalculateAssetAggregatesUseCase>();

            var assetRegisterContext = assetRegister.Get <AssetRegisterContext>();

            assetRegisterContext.Database.Migrate();
        }
Пример #3
0
 public GenerateAssetsUseCase(ICreateAssetRegisterVersionUseCase createAssetRegisterVersionUseCase)
 {
     _createAssetRegisterVersionUseCase = createAssetRegisterVersionUseCase;
 }
Пример #4
0
        public BulkCreateAssetTests()
        {
            _gateway = new Mock <IAssetRegisterVersionCreator>();

            _classUnderTest = new CreateAssetRegisterVersionUseCase(_gateway.Object);
        }
Пример #5
0
 public ImportAssetsUseCase(ICreateAssetRegisterVersionUseCase createAssetRegisterVersionUseCase, IFactory <CreateAssetRequest, CsvAsset> createAssetRequestFactory)
 {
     _createAssetRegisterVersionUseCase = createAssetRegisterVersionUseCase;
     _createAssetRequestFactory         = createAssetRequestFactory;
 }