Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -163,7 +163,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -172,7 +172,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -181,7 +181,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand Down
8 changes: 4 additions & 4 deletions ifrs17-template/Initialization/InitSystemorphToDatabase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -132,7 +132,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -141,7 +141,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -150,7 +150,7 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().WithTarget(DataSource).ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand Down
40 changes: 36 additions & 4 deletions ifrs17-template/Test/AocStructureTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@
{
"cell_type": "code",
"source": [
"public async Task CheckAocStepStructureAsync(IEnumerable<BaseDataRecord> inputVariables, ",
"public async Task<ActivityLog> CheckAocStepStructureAsync(IEnumerable<BaseDataRecord> inputVariables, ",
"\n Dictionary<AocStep,IEnumerable<AocStep>> parentBm, ",
"\n Dictionary<AocStep,AocStep> referenceBm, ",
"\n Dictionary<AocStep,IEnumerable<AocStep>> fullAocBm,",
"\n Dictionary<AocStep,IEnumerable<AocStep>> parentBmCdr = null)",
"\n{",
"\n Activity.Start();",
"\n //Save test input data",
"\n var importFormat = ImportFormats.Cashflow;",
"\n var inputSource = InputSource.Cashflow;",
Expand Down Expand Up @@ -232,6 +233,7 @@
"\n }",
"\n ",
"\n if(errors.Any()) ApplicationMessage.Log(Error.Generic, string.Join(\"\\n\", errors));",
"\n return Activity.Finish();",
"\n}",
"\n"
],
Expand Down Expand Up @@ -502,7 +504,17 @@
{
"cell_type": "code",
"source": [
"await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm, parentBm_CDR)"
"var activity = await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm, parentBm_CDR);",
"\nactivity"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"activity.Status.Should().Be(ActivityLogStatus.Succeeded);"
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -604,7 +616,17 @@
{
"cell_type": "code",
"source": [
"await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm)"
"var activity = await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm);",
"\nactivity"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"activity.Status.Should().Be(ActivityLogStatus.Succeeded);"
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -679,7 +701,17 @@
{
"cell_type": "code",
"source": [
"await CheckAocStepStructureAsync(inputIfrsVariables, parentBm, referenceBm, fullAocBm)"
"var activity = await CheckAocStepStructureAsync(inputIfrsVariables, parentBm, referenceBm, fullAocBm);",
"\nactivity"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"activity.Status.Should().Be(ActivityLogStatus.Succeeded);"
],
"metadata": {},
"execution_count": 0,
Expand Down
Loading