Beispiel #1
0
        public void ContractController_DeleteContract_ShouldReturnOk()
        {
            _mockService.CallCount = 1;

            var result = _controller.Delete(1);

            Assert.AreEqual(0, _mockService.CallCount);
            Assert.IsInstanceOfType(result, typeof(OkResult));
        }
Beispiel #2
0
        public void Delete()
        {
            // Arrange
            ContractController controller = new ContractController();

            // Act
            controller.Delete("5");

            // Assert
        }
Beispiel #3
0
 private void btn_delete_Click(object sender, EventArgs e)
 {
     ContractController.Delete(id);
     uc_MainContract.Instance.ReloadPanel();
 }