Anapher/Strive

View on GitHub
src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs

Summary

Maintainability
D
2 days
Test Coverage

File PollTests.cs has 305 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System.Linq;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.SignalR.Client;
using Strive.Core.Errors;

    Method CloseConference_PollsOpen_DeleteAllPolls has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Fact]
            public async Task CloseConference_PollsOpen_DeleteAllPolls()
            {
                // arrange
                var (connection, _) = await ConnectToOpenedConference();

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

                  await connection.SyncObjects.AssertSyncObject<SynchronizedScene>(
                      SynchronizedScene.SyncObjId(RoomOptions.DEFAULT_ROOM_ID),
                      obj => { Assert.Contains(obj.AvailableScenes, x => x is PollScene scene && scene.PollId == pollId); });
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 366..368

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 79.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

                  await connection.SyncObjects.AssertSyncObject<SynchronizedScene>(
                      SynchronizedScene.SyncObjId(RoomOptions.DEFAULT_ROOM_ID),
                      obj => { Assert.Contains(obj.AvailableScenes, x => x is PollScene scene && scene.PollId == pollId); });
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 382..384

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 79.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 3 locations. Consider refactoring.
      Open

                  var pollId = await CreatePollReturnId(connection,
                      new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}), new PollConfig("A or B?", true, false),
                          new PollState(true, true), null));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 280..282
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 299..301

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 73.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 3 locations. Consider refactoring.
      Open

                  var pollId = await CreatePollReturnId(connection,
                      new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}), new PollConfig("A or B?", true, false),
                          new PollState(true, true), null));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 299..301
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 327..329

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 73.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 3 locations. Consider refactoring.
      Open

                  var pollId = await CreatePollReturnId(connection,
                      new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}), new PollConfig("A or B?", true, false),
                          new PollState(true, false), null));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 280..282
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 327..329

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 73.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 5 locations. Consider refactoring.
      Open

                  AssertSuccess(await connection.Hub.InvokeAsync<SuccessOrError<Unit>>(nameof(CoreHub.SubmitPollAnswer),
                      new SubmitPollAnswerDto(pollId, new SingleChoiceAnswer("A"))));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 124..125
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 128..129
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 153..154
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 331..332

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 63.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 5 locations. Consider refactoring.
      Open

                  AssertSuccess(await connection.Hub.InvokeAsync<SuccessOrError<Unit>>(nameof(CoreHub.SubmitPollAnswer),
                      new SubmitPollAnswerDto(pollId, new SingleChoiceAnswer("A"))));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 98..99
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 128..129
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 153..154
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 331..332

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 63.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 5 locations. Consider refactoring.
      Open

                  AssertSuccess(await connection.Hub.InvokeAsync<SuccessOrError<Unit>>(nameof(CoreHub.SubmitPollAnswer),
                      new SubmitPollAnswerDto(pollId, new SingleChoiceAnswer("A"))));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 98..99
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 124..125
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 128..129
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 153..154

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 63.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 5 locations. Consider refactoring.
      Open

                  AssertSuccess(await connection.Hub.InvokeAsync<SuccessOrError<Unit>>(nameof(CoreHub.SubmitPollAnswer),
                      new SubmitPollAnswerDto(pollId, new SingleChoiceAnswer("A"))));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 98..99
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 124..125
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 128..129
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 331..332

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 63.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 5 locations. Consider refactoring.
      Open

                  AssertSuccess(await connection.Hub.InvokeAsync<SuccessOrError<Unit>>(nameof(CoreHub.SubmitPollAnswer),
                      new SubmitPollAnswerDto(pollId, new SingleChoiceAnswer("B"))));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 98..99
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 124..125
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 153..154
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 331..332

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 63.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

                  var result = await connection.Hub.InvokeAsync<SuccessOrError<Unit>>(nameof(CoreHub.SubmitPollAnswer),
                      new SubmitPollAnswerDto(pollId, new SingleChoiceAnswer("A")));
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/WhiteboardTests.cs on lines 181..182

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 63.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", true, false), new PollState(true, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", true, false), new PollState(true, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", true, false), new PollState(true, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", true, false), new PollState(true, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", false, false), new PollState(true, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

                  await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                      SynchronizedPollAnswers.SyncObjId(connection.User.Sub), results => { Assert.Empty(results.Answers); });
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", true, false), new PollState(true, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 243..244

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

                  var createDto = new CreatePollDto(new SingleChoiceInstruction(new[] {"A", "B"}),
                      new PollConfig("A or B?", true, false), new PollState(false, false), null);
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 92..93
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 119..120
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 147..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 174..175
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 200..201
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 216..217

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

                  await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                      SynchronizedPollAnswers.SyncObjId(connection.User.Sub), results => { Assert.Single(results.Answers); });
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

                  await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                      SynchronizedPollAnswers.SyncObjId(connection.User.Sub), syncObj => { Assert.Empty(syncObj.Answers); });
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 233..234
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

                  await connection.SyncObjects.AssertSyncObject<SynchronizedPollAnswers>(
                      SynchronizedPollAnswers.SyncObjId(connection.User.Sub), results => { Assert.Empty(results.Answers); });
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 146..148
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/EquipmentTests.cs on lines 154..156
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 225..226
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 349..350
      src/Services/ConferenceManagement/Strive.IntegrationTests/Services/PollTests.cs on lines 438..439

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 61.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      There are no issues that match your filters.

      Category
      Status