コード例 #1
0
        public async Task SaveDataItem_LeftData_ShouldSave()
        {
            IActionResult result = await _controller.SaveDataItemAsync(TestConstants.DiffId, "left", TestConstants.DataItemRequestA);

            await _diffService.Received().SaveDataItemAsync(TestConstants.DiffId, DiffItemSide.Left, TestConstants.DataItemRequestA.Data);

            Assert.IsType <CreatedResult>(result);
        }