Skip to content

Commit

Permalink
#657 workshop create with teachers (#664)
Browse files Browse the repository at this point in the history
* fix teacher create with workshop

* fix tests AccountController, WorkshopController

* AccountControllerTest fixes create controller
* WorkshopControllerTest fixes create controller
  • Loading branch information
trdmitry authored Jun 14, 2022
1 parent 6fc90a8 commit d1f08b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public void Setup()
fakeUserManager.Object,
fakeEmailSender.Object,
fakeLogger.Object,
fakeLocalizer.Object,
fakeRazorViewToStringRenderer.Object
fakeRazorViewToStringRenderer.Object,
fakeLocalizer.Object
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void Setup()
{
workshopServiceMoq = new Mock<IWorkshopServicesCombiner>();
providerServiceMoq = new Mock<IProviderService>();
providerAdminService = new Mock<IProviderAdminService>();
localizer = new Mock<IStringLocalizer<SharedResource>>();

controller = new WorkshopController(workshopServiceMoq.Object, providerServiceMoq.Object, providerAdminService.Object, localizer.Object, options.Object)
Expand Down
1 change: 0 additions & 1 deletion OutOfSchool/OutOfSchool.WebApi/Util/MappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public MappingProfile()

return dateTimeRanges;
}))
.ForMember(dest => dest.Teachers, opt => opt.Ignore())
.ForMember(dest => dest.Images, opt => opt.Ignore())
.ForMember(dest => dest.CoverImageId, opt => opt.Ignore());

Expand Down

0 comments on commit d1f08b6

Please sign in to comment.