示例#1
0
        public void DeleteChampion_NewItem_Success()
        {
            // Arrange
            var existingItem = CreateRandomChampion();

            championDaoStub.Setup(stub => stub.GetChampion(It.IsAny <Guid>())).Returns(existingItem);

            var controller = new ChampionController(championDaoStub.Object);

            // Act
            var result = controller.DeleteChampion(Guid.NewGuid());

            // Assert
            result.Should().BeOfType <NoContentResult>();
        }