Skip to content

Commit

Permalink
Merge pull request #8 from IliyanIlievPH/2
Browse files Browse the repository at this point in the history
update nuget and adjust namespaces
  • Loading branch information
starkmsu committed May 12, 2020
2 parents 5820c9c + bea5ae6 commit d13e70d
Show file tree
Hide file tree
Showing 35 changed files with 82 additions and 83 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using Autofac;
using JetBrains.Annotations;
using Lykke.HttpClientGenerator;
using Lykke.HttpClientGenerator.Infrastructure;
using System;

namespace Lykke.Service.SmsProviderMock.Client
namespace MAVN.Service.SmsProviderMock.Client
{
/// <summary>
/// Extension for client registration
Expand All @@ -30,7 +30,7 @@ public static class AutofacExtension
if (string.IsNullOrWhiteSpace(settings.ServiceUrl))
throw new ArgumentException("Value cannot be null or whitespace.", nameof(SmsProviderMockServiceClientSettings.ServiceUrl));

var clientBuilder = HttpClientGenerator.HttpClientGenerator.BuildForUrl(settings.ServiceUrl)
var clientBuilder = Lykke.HttpClientGenerator.HttpClientGenerator.BuildForUrl(settings.ServiceUrl)
.WithAdditionalCallsWrapper(new ExceptionHandlerCallsWrapper());

clientBuilder = builderConfigure?.Invoke(clientBuilder) ?? clientBuilder.WithoutRetries();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Lykke.Service.SmsProviderMock.Client.Models;
using MAVN.Service.SmsProviderMock.Client.Models;
using Refit;

namespace Lykke.Service.SmsProviderMock.Client
namespace MAVN.Service.SmsProviderMock.Client
{
/// <summary>
/// SmsProviderMock client API interface.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using JetBrains.Annotations;
using JetBrains.Annotations;

namespace Lykke.Service.SmsProviderMock.Client
namespace MAVN.Service.SmsProviderMock.Client
{
/// <summary>
/// SmsProviderMock client interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<None Remove="Lykke.Service.SmsProviderMock.Client.xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Falcon.Service.NotificationSystemBroker.SmsProviderClient" Version="1.0.1" />
<PackageReference Include="Lykke.HttpClientGenerator" Version="2.5.0" />
<PackageReference Include="Lykke.SettingsReader" Version="5.2.0" />
<PackageReference Include="MAVN.Service.NotificationSystemBroker.SmsProviderClient" Version="1.1.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;

namespace Lykke.Service.SmsProviderMock.Client.Models
namespace MAVN.Service.SmsProviderMock.Client.Models
{
/// <summary>
/// Model used for requesting paginated data for sms
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using JetBrains.Annotations;

namespace Lykke.Service.SmsProviderMock.Client.Models
namespace MAVN.Service.SmsProviderMock.Client.Models
{
/// <summary>
/// Gives the List of Sms on the desired Page and information about the Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Lykke.Service.SmsProviderMock.Client.Models
namespace MAVN.Service.SmsProviderMock.Client.Models
{
/// <summary>
/// Represents an sms
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Lykke.HttpClientGenerator;
using Lykke.Service.NotificationSystemBroker.SmsProviderClient;
using Lykke.HttpClientGenerator;
using MAVN.Service.NotificationSystemBroker.SmsProviderClient;

namespace Lykke.Service.SmsProviderMock.Client
namespace MAVN.Service.SmsProviderMock.Client
{
/// <summary>
/// SmsProviderMock API aggregating interface.
Expand All @@ -16,7 +16,7 @@ public class SmsProviderMockClient : ISmsProviderMockClient
/// <summary>
/// Interface to SmsProvider Api.
/// </summary>
public ISmsProvider Api { get; private set; }
public ISmsProviderApi Api { get; private set; }

/// <summary>C-tor</summary>
public SmsProviderMockClient(IHttpClientGenerator httpClientGenerator)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Lykke.SettingsReader.Attributes;

namespace Lykke.Service.SmsProviderMock.Client
namespace MAVN.Service.SmsProviderMock.Client
{
/// <summary>
/// SmsProviderMock client settings.
Expand Down
2 changes: 1 addition & 1 deletion src/MAVN.Service.SmsProviderMock.Domain/Entities/ISms.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Lykke.Service.SmsProviderMock.Domain.Entities
namespace MAVN.Service.SmsProviderMock.Domain.Entities
{
public interface ISms
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Lykke.Service.SmsProviderMock.Domain.Entities;
using MAVN.Service.SmsProviderMock.Domain.Entities;

namespace Lykke.Service.SmsProviderMock.Domain.Models
namespace MAVN.Service.SmsProviderMock.Domain.Models
{
public class PaginatedSmsModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Lykke.Service.SmsProviderMock.Domain.Entities;
using Lykke.Service.SmsProviderMock.Domain.Models;
using MAVN.Service.SmsProviderMock.Domain.Entities;
using MAVN.Service.SmsProviderMock.Domain.Models;

namespace Lykke.Service.SmsProviderMock.Domain.Repositories
namespace MAVN.Service.SmsProviderMock.Domain.Repositories
{
public interface ISmsRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.Threading.Tasks;
using Lykke.Service.SmsProviderMock.Domain.Models;
using MAVN.Service.SmsProviderMock.Domain.Models;

namespace Lykke.Service.SmsProviderMock.Domain.Services
namespace MAVN.Service.SmsProviderMock.Domain.Services
{
public interface ISmsService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Autofac;
using Lykke.Service.SmsProviderMock.Domain.Services;
using Lykke.Service.SmsProviderMock.DomainServices.Services;
using MAVN.Service.SmsProviderMock.Domain.Services;
using MAVN.Service.SmsProviderMock.DomainServices.Services;

namespace Lykke.Service.SmsProviderMock.DomainServices
namespace MAVN.Service.SmsProviderMock.DomainServices
{
public class AutofacModule : Module
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using AutoMapper;
using Common.Log;
using Lykke.Common.Log;
using Lykke.Service.SmsProviderMock.Domain.Models;
using Lykke.Service.SmsProviderMock.Domain.Repositories;
using Lykke.Service.SmsProviderMock.Domain.Services;
using MAVN.Service.SmsProviderMock.Domain.Models;
using MAVN.Service.SmsProviderMock.Domain.Repositories;
using MAVN.Service.SmsProviderMock.Domain.Services;

namespace Lykke.Service.SmsProviderMock.DomainServices.Services
namespace MAVN.Service.SmsProviderMock.DomainServices.Services
{
public class SmsService : ISmsService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Lykke.Service.SmsProviderMock.Domain.Entities;
using MAVN.Service.SmsProviderMock.Domain.Entities;

namespace Lykke.Service.SmsProviderMock.MsSqlRepositories.Entities
namespace MAVN.Service.SmsProviderMock.MsSqlRepositories.Entities
{
[Table("sms")]
public class SmsEntity : ISms
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// <auto-generated />

using System;
using Lykke.Service.SmsProviderMock.MsSqlRepositories;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

namespace Lykke.Service.SmsProviderMock.MsSqlRepositories.Migrations
namespace MAVN.Service.SmsProviderMock.MsSqlRepositories.Migrations
{
[DbContext(typeof(SmsContext))]
partial class SmsContextModelSnapshot : ModelSnapshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
using Common.Log;
using Lykke.Common.Log;
using Lykke.Common.MsSql;
using Lykke.Service.SmsProviderMock.Domain.Entities;
using Lykke.Service.SmsProviderMock.Domain.Models;
using Lykke.Service.SmsProviderMock.Domain.Repositories;
using Lykke.Service.SmsProviderMock.MsSqlRepositories.Entities;
using MAVN.Service.SmsProviderMock.Domain.Entities;
using MAVN.Service.SmsProviderMock.Domain.Models;
using MAVN.Service.SmsProviderMock.Domain.Repositories;
using MAVN.Service.SmsProviderMock.MsSqlRepositories.Entities;
using Microsoft.EntityFrameworkCore;

namespace Lykke.Service.SmsProviderMock.MsSqlRepositories.Repositories
namespace MAVN.Service.SmsProviderMock.MsSqlRepositories.Repositories
{
public class SmsRepository : ISmsRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Data.Common;
using JetBrains.Annotations;
using Lykke.Common.MsSql;
using Lykke.Service.SmsProviderMock.MsSqlRepositories.Entities;
using MAVN.Service.SmsProviderMock.MsSqlRepositories.Entities;
using Microsoft.EntityFrameworkCore;

namespace Lykke.Service.SmsProviderMock.MsSqlRepositories
namespace MAVN.Service.SmsProviderMock.MsSqlRepositories
{
public class SmsContext : MsSqlContext
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
using System;
using System;
using System.Net;
using System.Threading.Tasks;
using AutoMapper;
using Lykke.Service.NotificationSystemBroker.SmsProviderClient;
using Lykke.Service.NotificationSystemBroker.SmsProviderClient.Enums;
using Lykke.Service.SmsProviderMock.Client;
using Lykke.Service.SmsProviderMock.Client.Models;
using Lykke.Service.SmsProviderMock.Domain.Services;
using MAVN.Service.NotificationSystemBroker.SmsProviderClient;
using MAVN.Service.NotificationSystemBroker.SmsProviderClient.Enums;
using MAVN.Service.SmsProviderMock.Client;
using MAVN.Service.SmsProviderMock.Client.Models;
using MAVN.Service.SmsProviderMock.Domain.Services;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;

namespace Lykke.Service.SmsProviderMock.Controllers
namespace MAVN.Service.SmsProviderMock.Controllers
{
[Route("/api/")]
[ApiController]
public class SmsProviderMockController : Controller, ISmsProviderMockApi, ISmsProvider
public class SmsProviderMockController : Controller, ISmsProviderMockApi, ISmsProviderApi
{
private readonly ISmsService _smsService;
private readonly IMapper _mapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Lykke.Service.SmsProviderMock.Domain.Repositories;
using MAVN.Service.SmsProviderMock.Domain.Repositories;
using Microsoft.AspNetCore.Mvc;

namespace Lykke.Service.SmsProviderMock.Controllers
namespace MAVN.Service.SmsProviderMock.Controllers
{
[Route("/sentsms")]
[ApiExplorerSettings(IgnoreApi = true)]
Expand Down
10 changes: 5 additions & 5 deletions src/MAVN.Service.SmsProviderMock/Modules/DataLayerModule.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Autofac;
using JetBrains.Annotations;
using Lykke.Common.MsSql;
using Lykke.Service.SmsProviderMock.Domain.Repositories;
using Lykke.Service.SmsProviderMock.MsSqlRepositories;
using Lykke.Service.SmsProviderMock.MsSqlRepositories.Repositories;
using Lykke.Service.SmsProviderMock.Settings;
using Lykke.SettingsReader;
using MAVN.Service.SmsProviderMock.Domain.Repositories;
using MAVN.Service.SmsProviderMock.MsSqlRepositories;
using MAVN.Service.SmsProviderMock.MsSqlRepositories.Repositories;
using MAVN.Service.SmsProviderMock.Settings;

namespace Lykke.Service.SmsProviderMock.Modules
namespace MAVN.Service.SmsProviderMock.Modules
{
[UsedImplicitly]
public class DataLayerModule : Module
Expand Down
2 changes: 1 addition & 1 deletion src/MAVN.Service.SmsProviderMock/Modules/ServiceModule.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Autofac;
using JetBrains.Annotations;

namespace Lykke.Service.SmsProviderMock.Modules
namespace MAVN.Service.SmsProviderMock.Modules
{
[UsedImplicitly]
public class ServiceModule : Module
Expand Down
8 changes: 4 additions & 4 deletions src/MAVN.Service.SmsProviderMock/Profiles/ServiceProfile.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using AutoMapper;
using Lykke.Service.SmsProviderMock.Client.Models;
using Lykke.Service.SmsProviderMock.Domain.Entities;
using Lykke.Service.SmsProviderMock.Domain.Models;
using MAVN.Service.SmsProviderMock.Client.Models;
using MAVN.Service.SmsProviderMock.Domain.Entities;
using MAVN.Service.SmsProviderMock.Domain.Models;

namespace Lykke.Service.SmsProviderMock.Profiles
namespace MAVN.Service.SmsProviderMock.Profiles
{
public class ServiceProfile : Profile
{
Expand Down
4 changes: 2 additions & 2 deletions src/MAVN.Service.SmsProviderMock/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Lykke.Sdk;
using System.Threading.Tasks;
using Lykke.Sdk;

namespace Lykke.Service.SmsProviderMock
namespace MAVN.Service.SmsProviderMock
{
internal sealed class Program
{
Expand Down
2 changes: 1 addition & 1 deletion src/MAVN.Service.SmsProviderMock/Settings/AppSettings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using JetBrains.Annotations;
using Lykke.Sdk.Settings;

namespace Lykke.Service.SmsProviderMock.Settings
namespace MAVN.Service.SmsProviderMock.Settings
{
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class AppSettings : BaseAppSettings
Expand Down
2 changes: 1 addition & 1 deletion src/MAVN.Service.SmsProviderMock/Settings/DbSettings.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Lykke.SettingsReader.Attributes;

namespace Lykke.Service.SmsProviderMock.Settings
namespace MAVN.Service.SmsProviderMock.Settings
{
public class DbSettings
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using JetBrains.Annotations;

namespace Lykke.Service.SmsProviderMock.Settings
namespace MAVN.Service.SmsProviderMock.Settings
{
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public class SmsProviderMockSettings
Expand Down
6 changes: 3 additions & 3 deletions src/MAVN.Service.SmsProviderMock/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using JetBrains.Annotations;
using Lykke.Common.ApiLibrary.Filters;
using Lykke.Sdk;
using Lykke.Service.SmsProviderMock.Profiles;
using Lykke.Service.SmsProviderMock.Settings;
using MAVN.Service.SmsProviderMock.Profiles;
using MAVN.Service.SmsProviderMock.Settings;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace Lykke.Service.SmsProviderMock
namespace MAVN.Service.SmsProviderMock
{
[UsedImplicitly]
public class Startup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model Lykke.Service.SmsProviderMock.Domain.Entities.ISms
@model MAVN.Service.SmsProviderMock.Domain.Entities.ISms

<h1>
@Model.PhoneNumber
Expand Down
Loading

0 comments on commit d13e70d

Please sign in to comment.