Skip to content

Commit

Permalink
Code Smells fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
v08uka committed Jun 20, 2022
1 parent 159cdc4 commit adfce40
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ private List<WorkshopCard> FakeWorkshopCards()
return eSlist;
}

private WorkshopDescriptionItemDto FakeWorkshopDescriptionItem ()
private WorkshopDescriptionItemDto FakeWorkshopDescriptionItem()
{
var id = Guid.NewGuid();
return new WorkshopDescriptionItemDto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ private List<WorkshopCard> FakeWorkshopCards()
return eSlist;
}

private WorkshopDescriptionItemDto FakeWorkshopDescriptionItem ()
private WorkshopDescriptionItemDto FakeWorkshopDescriptionItem()
{
var id = Guid.NewGuid();
return new WorkshopDescriptionItemDto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ private Workshop WithWorkshop(Guid id)
Id = id,
Title = "ChangedTitle",
Phone = "1111111111",
//Description = "Desc1",
Price = 1000,
WithDisabilityOptions = true,
ProviderTitle = "ProviderTitle",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace OutOfSchool.WebApi.Extensions
// TODO: create a mapping profile instead of extensions
public static class ElasticsearchMappingExtensions
{
const char SEPARATOR = '¤';
private const char SEPARATOR = '¤';

// From DTO to ES models
public static WorkshopES ToESModel(this WorkshopDTO workshopDto)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace OutOfSchool.WebApi.Util.CustomValidation
{
[AttributeUsage(AttributeTargets.Property)]
public class CollectionNotEmpty : System.ComponentModel.DataAnnotations.ValidationAttribute
public class CollectionNotEmptyAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute
{
public override bool IsValid(object value)
{
Expand Down

0 comments on commit adfce40

Please sign in to comment.