|
181 | 181 | // var floatingLayerEformId = await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol flydelag").Select(x => x.CheckListId).FirstAsync(); |
182 | 182 | // |
183 | 183 | // // Assert result |
184 | | -// Assert.NotNull(result); |
| 184 | +// Assert.That(result, Is.Not.Null); |
185 | 185 | // Assert.That(result.Success, Is.EqualTo(true)); |
186 | 186 | // |
187 | 187 | // // Assert areaRules |
188 | | -// Assert.NotNull(areaRules); |
| 188 | +// Assert.That(areaRules, Is.Not.Null); |
189 | 189 | // Assert.That(areaRules.Count, Is.EqualTo(1)); |
190 | 190 | // Assert.That(areaRules[0].PropertyId, Is.EqualTo(properties[0].Id)); |
191 | 191 | // Assert.That(areaRules[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
192 | 192 | // Assert.That(areaRules[0].EformName, Is.EqualTo("03. Kontrol konstruktion")); |
193 | 193 | // |
194 | 194 | // // Assert areaRuleTranslations |
195 | | -// Assert.NotNull(areaRuleTranslations); |
| 195 | +// Assert.That(areaRuleTranslations, Is.Not.Null); |
196 | 196 | // Assert.That(areaRuleTranslations.Count, Is.EqualTo(1)); |
197 | 197 | // Assert.That(areaRuleTranslations[0].atr.AreaRuleId, Is.EqualTo(areaRules[0].Id)); |
198 | 198 | // Assert.That(areaRuleTranslations[0].atr.LanguageId, Is.EqualTo(1)); |
199 | 199 | // Assert.That(areaRuleTranslations[0].atr.Name, Is.EqualTo("Beholeder 1")); |
200 | 200 | // |
201 | 201 | // // Assert areaProperties |
202 | | -// Assert.NotNull(areaProperties); |
| 202 | +// Assert.That(areaProperties, Is.Not.Null); |
203 | 203 | // Assert.That(areaProperties.Count, Is.EqualTo(1)); |
204 | 204 | // Assert.That(areaProperties[0].PropertyId, Is.EqualTo(properties[0].Id)); |
205 | 205 | // Assert.That(areaProperties[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
|
526 | 526 | // var alarmeFormid = await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol flydelag").Select(x => x.CheckListId).FirstAsync(); |
527 | 527 | // |
528 | 528 | // // Assert result |
529 | | -// Assert.NotNull(result); |
| 529 | +// Assert.That(result, Is.Not.Null); |
530 | 530 | // Assert.That(result.Success, Is.EqualTo(true)); |
531 | 531 | // |
532 | 532 | // // Assert areaRules |
533 | | -// Assert.NotNull(areaRules); |
| 533 | +// Assert.That(areaRules, Is.Not.Null); |
534 | 534 | // Assert.That(areaRules.Count, Is.EqualTo(1)); |
535 | 535 | // Assert.That(areaRules[0].PropertyId, Is.EqualTo(properties[0].Id)); |
536 | 536 | // Assert.That(areaRules[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
537 | 537 | // Assert.That(areaRules[0].EformName, Is.EqualTo("03. Kontrol konstruktion")); |
538 | 538 | // |
539 | 539 | // // Assert areaRuleTranslations |
540 | | -// Assert.NotNull(areaRuleTranslations); |
| 540 | +// Assert.That(areaRuleTranslations, Is.Not.Null); |
541 | 541 | // Assert.That(areaRuleTranslations.Count, Is.EqualTo(1)); |
542 | 542 | // Assert.That(areaRuleTranslations[0].atr.AreaRuleId, Is.EqualTo(areaRules[0].Id)); |
543 | 543 | // Assert.That(areaRuleTranslations[0].atr.LanguageId, Is.EqualTo(1)); |
544 | 544 | // Assert.That(areaRuleTranslations[0].atr.Name, Is.EqualTo("Beholeder 1")); |
545 | 545 | // |
546 | 546 | // // Assert areaProperties |
547 | | -// Assert.NotNull(areaProperties); |
| 547 | +// Assert.That(areaProperties, Is.Not.Null); |
548 | 548 | // Assert.That(areaProperties.Count, Is.EqualTo(1)); |
549 | 549 | // Assert.That(areaProperties[0].PropertyId, Is.EqualTo(properties[0].Id)); |
550 | 550 | // Assert.That(areaProperties[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
|
922 | 922 | // /*var alarmeFormid = */await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol alarmanlæg gyllebeholder").Select(x => x.CheckListId).FirstAsync(); |
923 | 923 | // var floatingLayerEformId = await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol flydelag").Select(x => x.CheckListId).FirstAsync(); |
924 | 924 | // |
925 | | -// Assert.NotNull(result); |
| 925 | +// Assert.That(result, Is.Not.Null); |
926 | 926 | // Assert.That(result.Success, Is.EqualTo(true)); |
927 | 927 | // |
928 | 928 | // // Assert areaRules |
929 | | -// Assert.NotNull(areaRules); |
| 929 | +// Assert.That(areaRules, Is.Not.Null); |
930 | 930 | // Assert.That(areaRules.Count, Is.EqualTo(1)); |
931 | 931 | // Assert.That(areaRules[0].PropertyId, Is.EqualTo(properties[0].Id)); |
932 | 932 | // Assert.That(areaRules[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
933 | 933 | // Assert.That(areaRules[0].EformName, Is.EqualTo("03. Kontrol konstruktion")); |
934 | 934 | // |
935 | 935 | // // Assert areaRuleTranslations |
936 | | -// Assert.NotNull(areaRuleTranslations); |
| 936 | +// Assert.That(areaRuleTranslations, Is.Not.Null); |
937 | 937 | // Assert.That(areaRuleTranslations.Count, Is.EqualTo(1)); |
938 | 938 | // Assert.That(areaRuleTranslations[0].atr.AreaRuleId, Is.EqualTo(areaRules[0].Id)); |
939 | 939 | // Assert.That(areaRuleTranslations[0].atr.LanguageId, Is.EqualTo(1)); |
940 | 940 | // Assert.That(areaRuleTranslations[0].atr.Name, Is.EqualTo("Beholeder 1")); |
941 | 941 | // |
942 | 942 | // // Assert areaProperties |
943 | | -// Assert.NotNull(areaProperties); |
| 943 | +// Assert.That(areaProperties, Is.Not.Null); |
944 | 944 | // Assert.That(areaProperties.Count, Is.EqualTo(1)); |
945 | 945 | // Assert.That(areaProperties[0].PropertyId, Is.EqualTo(properties[0].Id)); |
946 | 946 | // Assert.That(areaProperties[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
|
1421 | 1421 | // /*var alarmeFormid = */await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol alarmanlæg gyllebeholder").Select(x => x.CheckListId).FirstAsync(); |
1422 | 1422 | // var floatingLayerEformId = await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol flydelag").Select(x => x.CheckListId).FirstAsync(); |
1423 | 1423 | // |
1424 | | -// Assert.NotNull(result); |
| 1424 | +// Assert.That(result, Is.Not.Null); |
1425 | 1425 | // Assert.That(result.Success, Is.EqualTo(true)); |
1426 | 1426 | // |
1427 | 1427 | // // Assert areaRules |
1428 | | -// Assert.NotNull(areaRules); |
| 1428 | +// Assert.That(areaRules, Is.Not.Null); |
1429 | 1429 | // Assert.That(areaRules.Count, Is.EqualTo(1)); |
1430 | 1430 | // Assert.That(areaRules[0].PropertyId, Is.EqualTo(properties[0].Id)); |
1431 | 1431 | // Assert.That(areaRules[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
1432 | 1432 | // Assert.That(areaRules[0].EformName, Is.EqualTo("03. Kontrol konstruktion")); |
1433 | 1433 | // |
1434 | 1434 | // // Assert areaRuleTranslations |
1435 | | -// Assert.NotNull(areaRuleTranslations); |
| 1435 | +// Assert.That(areaRuleTranslations, Is.Not.Null); |
1436 | 1436 | // Assert.That(areaRuleTranslations.Count, Is.EqualTo(1)); |
1437 | 1437 | // Assert.That(areaRuleTranslations[0].atr.AreaRuleId, Is.EqualTo(areaRules[0].Id)); |
1438 | 1438 | // Assert.That(areaRuleTranslations[0].atr.LanguageId, Is.EqualTo(1)); |
1439 | 1439 | // Assert.That(areaRuleTranslations[0].atr.Name, Is.EqualTo("Beholeder 1")); |
1440 | 1440 | // |
1441 | 1441 | // // Assert areaProperties |
1442 | | -// Assert.NotNull(areaProperties); |
| 1442 | +// Assert.That(areaProperties, Is.Not.Null); |
1443 | 1443 | // Assert.That(areaProperties.Count, Is.EqualTo(1)); |
1444 | 1444 | // Assert.That(areaProperties[0].PropertyId, Is.EqualTo(properties[0].Id)); |
1445 | 1445 | // Assert.That(areaProperties[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
|
2024 | 2024 | // /*var alarmeFormid = */await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol alarmanlæg gyllebeholder").Select(x => x.CheckListId).FirstAsync(); |
2025 | 2025 | // var floatingLayerEformId = await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol flydelag").Select(x => x.CheckListId).FirstAsync(); |
2026 | 2026 | // |
2027 | | -// Assert.NotNull(result); |
| 2027 | +// Assert.That(result, Is.Not.Null); |
2028 | 2028 | // Assert.That(result.Success, Is.EqualTo(true)); |
2029 | 2029 | // |
2030 | 2030 | // // Assert areaRules |
2031 | | -// Assert.NotNull(areaRules); |
| 2031 | +// Assert.That(areaRules, Is.Not.Null); |
2032 | 2032 | // Assert.That(areaRules.Count, Is.EqualTo(1)); |
2033 | 2033 | // Assert.That(areaRules[0].PropertyId, Is.EqualTo(properties[0].Id)); |
2034 | 2034 | // Assert.That(areaRules[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
2035 | 2035 | // Assert.That(areaRules[0].EformName, Is.EqualTo("03. Kontrol konstruktion")); |
2036 | 2036 | // |
2037 | 2037 | // // Assert areaRuleTranslations |
2038 | | -// Assert.NotNull(areaRuleTranslations); |
| 2038 | +// Assert.That(areaRuleTranslations, Is.Not.Null); |
2039 | 2039 | // Assert.That(areaRuleTranslations.Count, Is.EqualTo(1)); |
2040 | 2040 | // Assert.That(areaRuleTranslations[0].atr.AreaRuleId, Is.EqualTo(areaRules[0].Id)); |
2041 | 2041 | // Assert.That(areaRuleTranslations[0].atr.LanguageId, Is.EqualTo(1)); |
2042 | 2042 | // Assert.That(areaRuleTranslations[0].atr.Name, Is.EqualTo("Beholeder 1")); |
2043 | 2043 | // |
2044 | 2044 | // // Assert areaProperties |
2045 | | -// Assert.NotNull(areaProperties); |
| 2045 | +// Assert.That(areaProperties, Is.Not.Null); |
2046 | 2046 | // Assert.That(areaProperties.Count, Is.EqualTo(1)); |
2047 | 2047 | // Assert.That(areaProperties[0].PropertyId, Is.EqualTo(properties[0].Id)); |
2048 | 2048 | // Assert.That(areaProperties[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
|
2626 | 2626 | // /*var alarmeFormid = */await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol alarmanlæg gyllebeholder").Select(x => x.CheckListId).FirstAsync(); |
2627 | 2627 | // var floatingLayerEformId = await MicrotingDbContext.CheckListTranslations.Where(x => x.Text == "03. Kontrol flydelag").Select(x => x.CheckListId).FirstAsync(); |
2628 | 2628 | // |
2629 | | -// Assert.NotNull(result); |
| 2629 | +// Assert.That(result, Is.Not.Null); |
2630 | 2630 | // Assert.That(result.Success, Is.EqualTo(true)); |
2631 | 2631 | // |
2632 | 2632 | // // Assert areaRules |
2633 | | -// Assert.NotNull(areaRules); |
| 2633 | +// Assert.That(areaRules, Is.Not.Null); |
2634 | 2634 | // Assert.That(areaRules.Count, Is.EqualTo(1)); |
2635 | 2635 | // Assert.That(areaRules[0].PropertyId, Is.EqualTo(properties[0].Id)); |
2636 | 2636 | // Assert.That(areaRules[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
2637 | 2637 | // Assert.That(areaRules[0].EformName, Is.EqualTo("03. Kontrol konstruktion")); |
2638 | 2638 | // |
2639 | 2639 | // // Assert areaRuleTranslations |
2640 | | -// Assert.NotNull(areaRuleTranslations); |
| 2640 | +// Assert.That(areaRuleTranslations, Is.Not.Null); |
2641 | 2641 | // Assert.That(areaRuleTranslations.Count, Is.EqualTo(1)); |
2642 | 2642 | // Assert.That(areaRuleTranslations[0].atr.AreaRuleId, Is.EqualTo(areaRules[0].Id)); |
2643 | 2643 | // Assert.That(areaRuleTranslations[0].atr.LanguageId, Is.EqualTo(1)); |
2644 | 2644 | // Assert.That(areaRuleTranslations[0].atr.Name, Is.EqualTo("Beholeder 1")); |
2645 | 2645 | // |
2646 | 2646 | // |
2647 | 2647 | // // Assert areaProperties |
2648 | | -// Assert.NotNull(areaProperties); |
| 2648 | +// Assert.That(areaProperties, Is.Not.Null); |
2649 | 2649 | // Assert.That(areaProperties.Count, Is.EqualTo(1)); |
2650 | 2650 | // Assert.That(areaProperties[0].PropertyId, Is.EqualTo(properties[0].Id)); |
2651 | 2651 | // Assert.That(areaProperties[0].AreaId, Is.EqualTo(areaTranslation.AreaId)); |
|
0 commit comments