public AddLoadingPlaceCommandHandlerTest() { loadingPlaceRepo = new Mock <ILoadingPlaceRepo>(); mapper = new Mock <IMapper>(); command = new AddLoadingPlaceCommand(); commandHandler = new AddLoadingPlaceCommandHandler(loadingPlaceRepo.Object, mapper.Object); loadingPlace = new LoadingPlace(); }
public async Task <IActionResult> AddLoadingPlace(AddLoadingPlaceCommand command) { await mediator.Send(command); return(Ok()); }