Refactor UpdateEndpointParamsCommand initialization
Refactored the `UpdateEndpointParamsCommand` to use the newly introduced `UpdateEndpointParamsDto` class for encapsulating the `Data` property. Added a `using` directive for the `ReC.Application.Common.Procedures.UpdateProcedure.Dto` namespace to support this change.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using MediatR;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using ReC.Application.Common.Procedures.UpdateProcedure.Dto;
|
||||
using ReC.Application.EndpointParams.Commands;
|
||||
|
||||
namespace ReC.Tests.Application.EndpointParams;
|
||||
@@ -29,7 +30,7 @@ public class EndpointParamsProcedureTests : RecApplicationTestBase
|
||||
[Test]
|
||||
public async Task UpdateEndpointParamsProcedure_runs_via_mediator()
|
||||
{
|
||||
var procedure = new UpdateEndpointParamsCommand { Data = { Active = false, Description = "param-update", GroupId = 2, Sequence = 2, Key = "k2", Value = "v2" }, Id = 25 };
|
||||
var procedure = new UpdateEndpointParamsCommand { Data = new UpdateEndpointParamsDto { Active = false, Description = "param-update", GroupId = 2, Sequence = 2, Key = "k2", Value = "v2" }, Id = 25 };
|
||||
|
||||
var (sender, scope) = CreateScopedSender();
|
||||
using var _ = scope;
|
||||
|
||||
Reference in New Issue
Block a user