public async Task Should_Update_Feedstock() { var feedstockId = Guid.NewGuid(); var updateFeedstockCommandHandler = new UpdateFeedstockCommandHandler(_feedstockRepository); var feedstockCommand = FeedstockCommandDto.New("blue", StatusEnum.Enable, Guid.NewGuid(), 2, Guid.NewGuid(), Guid.NewGuid()); var request = UpdateFeedstockCommandResquest.New(feedstockCommand, feedstockId); await updateFeedstockCommandHandler.Handle(request, new CancellationToken()); Assert.True(updated); Assert.Equal(feedstockId, Guid.Parse(request.FeedstockId.Value.ToString())); }
public void Should_Create_UpdateFeedstockCommandHandler() { var updateFeedstockCommandHandler = new UpdateFeedstockCommandHandler(_feedstockRepository); Assert.NotNull(updateFeedstockCommandHandler); }