Skip to content
Open
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
5 changes: 2 additions & 3 deletions docs/services/service-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class MyController
private MyViewModelMapper mapper;
private IMyService service;

public MyService(MyViewModelMapper mapper, IMyService service)
public MyController(MyViewModelMapper mapper, IMyService service)
{
this.mapper = mapper;
this.service = service;
Expand All @@ -95,8 +95,7 @@ public class MyController

public class MyViewModel
{
public int Id { get; set; }


// Method is pure, so doesn't need to be mocked or injected -> make it static:
public static MyViewModel From(MyModel model)
{
Expand Down