Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using TickAPI.Addresses.Models;
using TickAPI.Categories.Models;
using TickAPI.Events.Filters;
using TickAPI.Events.Models;
using TickAPI.Events.Services;
using TickAPI.TicketTypes.Models;

namespace TickAPI.Tests.Events.Services;
namespace TickAPI.Tests.Events.Filters;

public class EventFilterTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using TickAPI.Events.Abstractions;
using TickAPI.Events.Models;

namespace TickAPI.Events.Services;
namespace TickAPI.Events.Filters;

public class EventFilter : IEventFilter
{
Expand Down
1 change: 0 additions & 1 deletion TickAPI/TickAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
})
.AddGoogle(options =>
{
options.ClientId = builder.Configuration["Authentication:Google:ClientId"];

Check warning on line 55 in TickAPI/TickAPI/Program.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference assignment.
options.ClientSecret = builder.Configuration["Authentication:Google:ClientSecret"];

Check warning on line 56 in TickAPI/TickAPI/Program.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference assignment.
})
.AddJwtBearer(options =>
{
Expand All @@ -65,7 +65,7 @@
ValidateIssuerSigningKey = true,
ValidIssuer = builder.Configuration["Authentication:Jwt:Issuer"],
IssuerSigningKey = new SymmetricSecurityKey(
Encoding.UTF8.GetBytes(builder.Configuration["Authentication:Jwt:SecurityKey"]))

Check warning on line 68 in TickAPI/TickAPI/Program.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 's' in 'byte[] Encoding.GetBytes(string s)'.
};
});

Expand All @@ -92,7 +92,6 @@
// Add event services.
builder.Services.AddScoped<IEventService, EventService>();
builder.Services.AddScoped<IEventRepository, EventRepository>();
builder.Services.AddScoped<IEventFilter, EventFilter>();

// Add address services.
builder.Services.AddScoped<IAddressService, AddressService>();
Expand Down
Loading