Skip to content

Commit 079eef3

Browse files
committed
Merge branch 'stable' of github.com:microting/eform-backendconfiguration-plugin into stable
2 parents c8771a0 + 26353bb commit 079eef3

File tree

26 files changed

+734
-716
lines changed

26 files changed

+734
-716
lines changed

eFormAPI/Plugins/BackendConfiguration.Pn/BackendConfiguration.Pn.Integration.Test/BackendConfigurationAreaRulePlanningsServiceHelperTestLogBooks.cs

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,20 @@ await BackendConfigurationAssignmentWorkerServiceHelper.Create(propertyAssignWor
8585
var areaId = areaTranslation.AreaId;
8686
var currentSite = await MicrotingDbContext!.Sites.OrderByDescending(x => x.Id).FirstAsync();
8787

88-
var propertyAreasUpdateModel = new PropertyAreasUpdateModel
89-
{
90-
Areas =
91-
[
92-
new()
93-
{
94-
AreaId = areaTranslation.AreaId,
95-
Activated = true
96-
}
97-
],
98-
PropertyId = properties[0].Id
99-
};
100-
101-
var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
88+
// var propertyAreasUpdateModel = new PropertyAreasUpdateModel
89+
// {
90+
// Areas =
91+
// [
92+
// new()
93+
// {
94+
// AreaId = areaTranslation.AreaId,
95+
// Activated = true
96+
// }
97+
// ],
98+
// PropertyId = properties[0].Id
99+
// };
100+
//
101+
// var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
102102

103103
var checkListTranslation = await MicrotingDbContext.CheckListTranslations.FirstAsync(x => x.Text == "01. Gyllekøling");
104104

@@ -195,8 +195,8 @@ await BackendConfigurationAreaRulePlanningsServiceHelper.UpdatePlanning(areaRule
195195
var cases = await MicrotingDbContext!.Cases.ToListAsync();
196196

197197
// Assert result
198-
Assert.That(result, Is.Not.Null);
199-
Assert.That(result.Success, Is.EqualTo(true));
198+
// Assert.That(result, Is.Not.Null);
199+
// Assert.That(result.Success, Is.EqualTo(true));
200200

201201
// Assert areaRules
202202
Assert.That(areaRules, Is.Not.Null);
@@ -487,20 +487,20 @@ await BackendConfigurationAssignmentWorkerServiceHelper.Create(propertyAssignWor
487487
var areaId = areaTranslation.AreaId;
488488
var currentSite = await MicrotingDbContext!.Sites.OrderByDescending(x => x.Id).FirstAsync();
489489

490-
var propertyAreasUpdateModel = new PropertyAreasUpdateModel
491-
{
492-
Areas =
493-
[
494-
new()
495-
{
496-
AreaId = areaTranslation.AreaId,
497-
Activated = true
498-
}
499-
],
500-
PropertyId = properties[0].Id
501-
};
502-
503-
var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
490+
// var propertyAreasUpdateModel = new PropertyAreasUpdateModel
491+
// {
492+
// Areas =
493+
// [
494+
// new()
495+
// {
496+
// AreaId = areaTranslation.AreaId,
497+
// Activated = true
498+
// }
499+
// ],
500+
// PropertyId = properties[0].Id
501+
// };
502+
//
503+
// var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
504504

505505
var checkListTranslation = await MicrotingDbContext.CheckListTranslations.FirstAsync(x => x.Text == "01. Gyllekøling");
506506

@@ -597,8 +597,8 @@ await BackendConfigurationAreaRulePlanningsServiceHelper.UpdatePlanning(areaRule
597597
var cases = await MicrotingDbContext!.Cases.ToListAsync();
598598

599599
// Assert result
600-
Assert.That(result, Is.Not.Null);
601-
Assert.That(result.Success, Is.EqualTo(true));
600+
// Assert.That(result, Is.Not.Null);
601+
// Assert.That(result.Success, Is.EqualTo(true));
602602

603603
// Assert areaRules
604604
Assert.That(areaRules, Is.Not.Null);
@@ -892,20 +892,20 @@ await BackendConfigurationAssignmentWorkerServiceHelper.Create(propertyAssignWor
892892
var areaId = areaTranslation.AreaId;
893893
var currentSite = await MicrotingDbContext!.Sites.OrderByDescending(x => x.Id).FirstAsync();
894894

895-
var propertyAreasUpdateModel = new PropertyAreasUpdateModel
896-
{
897-
Areas =
898-
[
899-
new()
900-
{
901-
AreaId = areaTranslation.AreaId,
902-
Activated = true
903-
}
904-
],
905-
PropertyId = properties[0].Id
906-
};
907-
908-
var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
895+
// var propertyAreasUpdateModel = new PropertyAreasUpdateModel
896+
// {
897+
// Areas =
898+
// [
899+
// new()
900+
// {
901+
// AreaId = areaTranslation.AreaId,
902+
// Activated = true
903+
// }
904+
// ],
905+
// PropertyId = properties[0].Id
906+
// };
907+
//
908+
// var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
909909

910910
var checkListTranslation = await MicrotingDbContext.CheckListTranslations.FirstAsync(x => x.Text == "01. Gyllekøling");
911911

@@ -1002,8 +1002,8 @@ await BackendConfigurationAreaRulePlanningsServiceHelper.UpdatePlanning(areaRule
10021002
var cases = await MicrotingDbContext!.Cases.ToListAsync();
10031003

10041004
// Assert result
1005-
Assert.That(result, Is.Not.Null);
1006-
Assert.That(result.Success, Is.EqualTo(true));
1005+
// Assert.That(result, Is.Not.Null);
1006+
// Assert.That(result.Success, Is.EqualTo(true));
10071007

10081008
// Assert areaRules
10091009
Assert.That(areaRules, Is.Not.Null);
@@ -1297,20 +1297,20 @@ await BackendConfigurationAssignmentWorkerServiceHelper.Create(propertyAssignWor
12971297
var areaId = areaTranslation.AreaId;
12981298
var currentSite = await MicrotingDbContext!.Sites.OrderByDescending(x => x.Id).FirstAsync();
12991299

1300-
var propertyAreasUpdateModel = new PropertyAreasUpdateModel
1301-
{
1302-
Areas =
1303-
[
1304-
new()
1305-
{
1306-
AreaId = areaTranslation.AreaId,
1307-
Activated = true
1308-
}
1309-
],
1310-
PropertyId = properties[0].Id
1311-
};
1312-
1313-
var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
1300+
// var propertyAreasUpdateModel = new PropertyAreasUpdateModel
1301+
// {
1302+
// Areas =
1303+
// [
1304+
// new()
1305+
// {
1306+
// AreaId = areaTranslation.AreaId,
1307+
// Activated = true
1308+
// }
1309+
// ],
1310+
// PropertyId = properties[0].Id
1311+
// };
1312+
//
1313+
// var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
13141314
var checkListTranslation = await MicrotingDbContext.CheckListTranslations.FirstAsync(x => x.Text == "01. Gyllekøling");
13151315

13161316
AreaRulesCreateModel areaRulesCreateModel = new AreaRulesCreateModel
@@ -1408,8 +1408,8 @@ await BackendConfigurationAreaRulePlanningsServiceHelper.UpdatePlanning(areaRule
14081408
var languages = await MicrotingDbContext.Languages.ToListAsync();
14091409

14101410
// Assert result
1411-
Assert.That(result, Is.Not.Null);
1412-
Assert.That(result.Success, Is.EqualTo(true));
1411+
// Assert.That(result, Is.Not.Null);
1412+
// Assert.That(result.Success, Is.EqualTo(true));
14131413

14141414
// Assert areaRules
14151415
Assert.That(areaRules, Is.Not.Null);
@@ -1724,20 +1724,20 @@ await BackendConfigurationAssignmentWorkerServiceHelper.Create(propertyAssignWor
17241724
var areaId = areaTranslation.AreaId;
17251725
sites = await MicrotingDbContext!.Sites.AsNoTracking().ToListAsync();
17261726

1727-
var propertyAreasUpdateModel = new PropertyAreasUpdateModel
1728-
{
1729-
Areas =
1730-
[
1731-
new()
1732-
{
1733-
AreaId = areaTranslation.AreaId,
1734-
Activated = true
1735-
}
1736-
],
1737-
PropertyId = properties[0].Id
1738-
};
1739-
1740-
var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
1727+
// var propertyAreasUpdateModel = new PropertyAreasUpdateModel
1728+
// {
1729+
// Areas =
1730+
// [
1731+
// new()
1732+
// {
1733+
// AreaId = areaTranslation.AreaId,
1734+
// Activated = true
1735+
// }
1736+
// ],
1737+
// PropertyId = properties[0].Id
1738+
// };
1739+
//
1740+
// var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
17411741
var checkListTranslation = await MicrotingDbContext.CheckListTranslations.FirstAsync(x => x.Text == "01. Gyllekøling");
17421742

17431743
AreaRulesCreateModel areaRulesCreateModel = new AreaRulesCreateModel
@@ -1893,8 +1893,8 @@ await BackendConfigurationAreaRulePlanningsServiceHelper.UpdatePlanning(areaRule
18931893
var cases = await MicrotingDbContext!.Cases.ToListAsync();
18941894

18951895
// Assert result
1896-
Assert.That(result, Is.Not.Null);
1897-
Assert.That(result.Success, Is.EqualTo(true));
1896+
// Assert.That(result, Is.Not.Null);
1897+
// Assert.That(result.Success, Is.EqualTo(true));
18981898

18991899
// Assert areaRules
19001900
Assert.That(areaRules, Is.Not.Null);
@@ -2197,20 +2197,20 @@ await BackendConfigurationAssignmentWorkerServiceHelper.Create(propertyAssignWor
21972197
var areaId = areaTranslation.AreaId;
21982198
var currentSite = await MicrotingDbContext!.Sites.OrderByDescending(x => x.Id).FirstAsync();
21992199

2200-
var propertyAreasUpdateModel = new PropertyAreasUpdateModel
2201-
{
2202-
Areas =
2203-
[
2204-
new()
2205-
{
2206-
AreaId = areaTranslation.AreaId,
2207-
Activated = true
2208-
}
2209-
],
2210-
PropertyId = properties[0].Id
2211-
};
2212-
2213-
var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
2200+
// var propertyAreasUpdateModel = new PropertyAreasUpdateModel
2201+
// {
2202+
// Areas =
2203+
// [
2204+
// new()
2205+
// {
2206+
// AreaId = areaTranslation.AreaId,
2207+
// Activated = true
2208+
// }
2209+
// ],
2210+
// PropertyId = properties[0].Id
2211+
// };
2212+
//
2213+
// var result = await BackendConfigurationPropertyAreasServiceHelper.Update(propertyAreasUpdateModel, core, BackendConfigurationPnDbContext, ItemsPlanningPnDbContext, 1);
22142214

22152215
var checkListTranslation = await MicrotingDbContext.CheckListTranslations.FirstAsync(x => x.Text == "01. Gyllekøling");
22162216

@@ -2372,8 +2372,8 @@ await BackendConfigurationAreaRulePlanningsServiceHelper.UpdatePlanning(areaRule
23722372
var cases = await MicrotingDbContext!.Cases.ToListAsync();
23732373

23742374
// Assert result
2375-
Assert.That(result, Is.Not.Null);
2376-
Assert.That(result.Success, Is.EqualTo(true));
2375+
// Assert.That(result, Is.Not.Null);
2376+
// Assert.That(result.Success, Is.EqualTo(true));
23772377

23782378
// Assert areaRules
23792379
Assert.That(areaRules, Is.Not.Null);

0 commit comments

Comments
 (0)