public void CreateItemCallsDispatch() { var postItem = new ItemPostDto() { Description = _chance.Sentence(5), Upc = TestUtils.CreateUpc() }; var createItemCommand = new CreateItemCommand() { Id = Guid.NewGuid(), Description = postItem.Description, Upc = postItem.Upc }; _itemCommandFactory.CreateInstance().Returns(createItemCommand); _itemService.CreateItemAsync(postItem); _commandDispatcher.Received(1).SendAsync(createItemCommand); }