Skip to content

Commit

Permalink
fix: codacy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-sousa-8 authored and jose-sousa committed Sep 12, 2023
1 parent 1650e35 commit babb476
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[TestClass]
public class ConsumersControllerTests
{
private Fixture fixture = new();
private readonly Fixture fixture = new();
private ConsumersController target;
private Mock<IConsumerAccessor> mockConsumerAccessor;
private Mock<IConsumerAdmin> mockConsumerAdmin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[TestClass]
public class GroupsControllerTests
{
private Fixture fixture = new();
private readonly Fixture fixture = new();
private GroupsController target;
private Mock<IConsumerAccessor> mockConsumerAccessor;
private Mock<IConsumerAdmin> mockConsumerAdmin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using AutoFixture;
using FluentAssertions;
using KafkaFlow.Admin;
using KafkaFlow.Admin.Messages;
Expand All @@ -18,7 +17,6 @@
public class TelemetryControllerTests
{
private Mock<ITelemetryStorage> mockTelemetryStorage;
private Fixture fixture = new();
private TelemetryController target;

[TestInitialize]
Expand All @@ -34,7 +32,7 @@ public void GetTelemetry_ReturnsOkResultWithTelemetryResponse()
// Arrange
var metrics = new List<ConsumerTelemetryMetric>
{
new ConsumerTelemetryMetric()
new ConsumerTelemetryMetric
{
GroupId = "group1",
ConsumerName = "consumer1",
Expand Down

0 comments on commit babb476

Please sign in to comment.