public void Parameter_Delete_Test() { //Arrange Parameter entity = new Parameter() { Id = 3, Name = "Another Name", Type = "bool", Value = "33" }; mockRepository .Setup(x => x.Remove(entity)); //Act bool result = service.Delete(entity); //Assert Assert.True(result); }