コード例 #1
0
        public async Task UpdateLoadingPlace_Success()
        {
            //Arrange
            deliveryService.Setup(x => x.GetLoadingPlace(loadingPlaceId)).Returns(Task.FromResult(loadingPlace));

            //Act
            var action = await deliveryController.UpdateLoadingPlace(loadingPlaceId) as ViewResult;

            var model = action.Model as PostPutLoadingPlaceViewModel;

            //Arrange
            Assert.Equal(loadingPlaceId, model.LoadingPlace.Id);
        }