public void To_Check_Get_Return_ListById_Or_Not(bool i) { // Arrange _idomain.Setup(x => x.GetDomainFromId(It.IsAny <DomainModel>())).Returns(GetDomain()); // Act var controller = new DomainsController(_idomain.Object); var result = controller.Get(); // Assert Assert.NotNull(result); }
public void To_Check_Get_Return_List_Or_Not() { // Arrange _idomain.Setup(x => x.ListofDomain()).Returns(new List <DomainModel>()); // Act var controller = new DomainsController(_idomain.Object); var result = controller.Get(); // Assert Assert.NotNull(result); }