コード例 #1
0
        public void Setup()
        {
            var databaseUrl  = Environment.GetEnvironmentVariable("DATABASE_URL");
            var assetGateway = new EFAssetRegisterVersionGateway(databaseUrl);

            _classUnderTest = assetGateway;
            _assetRegisterVersionCreator = assetGateway;

            var assetRegisterContext = new AssetRegisterContext(databaseUrl);

            assetRegisterContext.Database.Migrate();
        }
 public CreateAssetRegisterVersionUseCase(IAssetRegisterVersionCreator assetRegisterVersionCreator)
 {
     _assetRegisterVersionCreator = assetRegisterVersionCreator;
 }