Skip to content

Commit

Permalink
Reverted changes to other components
Browse files Browse the repository at this point in the history
  • Loading branch information
acn-sbuad committed Nov 16, 2023
1 parent fa2fa28 commit e4481ed
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/Models/ServiceError.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace LocalTest.Models
namespace Altinn.Platform.Storage.Models
{
/// <summary>
/// A class representing a service error object used to transfere error information from service to controller.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Text.RegularExpressions;

using FluentValidation;
using LocalTest.Notifications.Models.API;

using LocalTest.Notifications.API.Models;

namespace LocalTest.Notifications.Controllers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
using Altinn.Notifications.Mappers;
using Altinn.Notifications.Core.Models;

using FluentValidation;

using LocalTest.Models;
using LocalTest.Notifications.API.Controllers;
using LocalTest.Notifications.API.Extensions;
using LocalTest.Notifications.API.Mappers;
using LocalTest.Notifications.API.Models;
using LocalTest.Notifications.Core.Models.Orders;
using LocalTest.Notifications.Core.Services;
using LocalTest.Notifications.Extensions;
using LocalTest.Notifications.Models.API;

using Microsoft.AspNetCore.Mvc;

namespace LocalTest.Notifications.Controllers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using LocalTest.Notifications.Core.Models.NotificationTemplate;
using LocalTest.Notifications.Core.Models.Orders;

namespace Altinn.Notifications.Mappers;
namespace LocalTest.Notifications.API.Mappers;

/// <summary>
/// Mapper for <see cref="EmailNotificationOrderRequestExt"/>
Expand Down Expand Up @@ -156,7 +156,7 @@ private static IBaseNotificationOrderExt MapBaseNotificationOrder(this IBaseNoti
return orderExt;
}

private static string? GetEmailFromAddressList(List<IAddressPoint> addressPoints)
private static string GetEmailFromAddressList(List<IAddressPoint> addressPoints)
{
var emailAddressPoint = addressPoints
.Find(a => a.AddressType.Equals(AddressType.Email))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Text.Json.Serialization;

using LocalTest.Notifications.Models.API;

namespace LocalTest.Notifications.API.Models
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Text.Json.Serialization;

using LocalTest.Notifications.Models.API;

namespace LocalTest.Notifications.API.Models;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Altinn.Notifications.Core.Models.Orders;

using LocalTest.Notifications.Core.Models.Enums;

namespace LocalTest.Notifications.Core.Models.Notification;
Expand Down
4 changes: 2 additions & 2 deletions src/Notifications/Core/Models/ServiceError.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace LocalTest.Notifications.Core.Models;
namespace Altinn.Notifications.Core.Models;

/// <summary>
/// A class representing a service error object used to transfere error information from service to controller.
Expand All @@ -14,7 +14,7 @@ public class ServiceError
/// <summary>
/// The error message
/// </summary>
public string ErrorMessage { get; private set; }
public string? ErrorMessage { get; private set; }

Check warning on line 17 in src/Notifications/Core/Models/ServiceError.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 17 in src/Notifications/Core/Models/ServiceError.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

/// <summary>
/// Create a new instance of a service error
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using LocalTest.Models;
using Altinn.Notifications.Core.Models;

using LocalTest.Models;
using LocalTest.Notifications.Core.Models.NotificationTemplate;
using LocalTest.Notifications.Core.Models.Orders;
using LocalTest.Notifications.Core.Repository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using LocalTest.Models;
using Altinn.Notifications.Core.Models;

using LocalTest.Notifications.Core.Models.Orders;

namespace LocalTest.Notifications.Core.Services;
Expand Down
3 changes: 1 addition & 2 deletions src/Services/Storage/Implementation/ApplicationService.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using Altinn.Platform.Storage.Interface.Models;
using Altinn.Platform.Storage.Models;
using Altinn.Platform.Storage.Repository;

using LocalTest.Models;

namespace Altinn.Platform.Storage.Services
{
/// <summary>
Expand Down
3 changes: 1 addition & 2 deletions src/Services/Storage/Implementation/DataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

using Altinn.Platform.Storage.Clients;
using Altinn.Platform.Storage.Interface.Models;
using Altinn.Platform.Storage.Models;
using Altinn.Platform.Storage.Repository;

using LocalTest.Models;

namespace Altinn.Platform.Storage.Services
{
/// <summary>
Expand Down
3 changes: 1 addition & 2 deletions src/Services/Storage/Implementation/InstanceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
using Altinn.Platform.Storage.Helpers;
using Altinn.Platform.Storage.Interface.Enums;
using Altinn.Platform.Storage.Interface.Models;
using Altinn.Platform.Storage.Models;
using Altinn.Platform.Storage.Repository;

using LocalTest.Models;

using Newtonsoft.Json;

namespace Altinn.Platform.Storage.Services
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Storage/Interface/IApplicationService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using LocalTest.Models;
using Altinn.Platform.Storage.Models;

namespace Altinn.Platform.Storage.Services
{
Expand Down
3 changes: 1 addition & 2 deletions src/Services/Storage/Interface/IDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
using System.Threading.Tasks;

using Altinn.Platform.Storage.Interface.Models;

using LocalTest.Models;
using Altinn.Platform.Storage.Models;

namespace Altinn.Platform.Storage.Services
{
Expand Down
4 changes: 1 addition & 3 deletions src/Services/Storage/Interface/IInstanceService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System;
using System.Threading.Tasks;

using Altinn.Platform.Storage.Interface.Models;

using LocalTest.Models;
using Altinn.Platform.Storage.Models;

namespace Altinn.Platform.Storage.Services
{
Expand Down
2 changes: 2 additions & 0 deletions src/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
using LocalTest.Notifications.Core.Services;
using LocalTest.Notifications.Core.Repository;
using LocalTest.Notifications.Persistence.Repository;
using LocalTest.Notifications.API.Models;
using LocalTest.Notifications.API.Extensions;

namespace LocalTest
{
Expand Down

0 comments on commit e4481ed

Please sign in to comment.