예제 #1
0
        public void DeleteBar_DeleteExistingBar_ReturnsOk()
        {
            // Arrange
            string receivedId = "TestBar";

            // Act
            var result = uut.DeleteBar(receivedId);

            // Assert
            Assert.That(result, Is.TypeOf <OkResult>());
            mockUnitOfWork.BarRepository.Received(1).Delete(receivedId);
        }