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