public void ClaimFieldLogicConstructorTest() { var target = new ClaimFieldLogic(Constants.ConnectionString); //Assert Assert.IsInstanceOfType(target, typeof(ClaimFieldLogic)); }
public void ClaimFieldLogicConstructorTest2() { Mock <IClaimFieldRepository> mockClaimFieldRepository = new Mock <IClaimFieldRepository>(); ClaimFieldLogic target = new ClaimFieldLogic(mockClaimFieldRepository.Object); Assert.IsInstanceOfType(target, typeof(ClaimFieldLogic)); }
private ClaimFieldController() { int facilityId = Convert.ToInt32(System.Web.HttpContext.Current.Request.Headers[Constants.BubbleDataSource]); string bubbleDataSource = GetFacilityConnection(facilityId); _claimFieldLogic = new ClaimFieldLogic(bubbleDataSource); }
public void GetClaimFieldsByModuleTest() { var mockClaimFieldLogic = new Mock <IClaimFieldRepository>(); const int value = 2; mockClaimFieldLogic.Setup(f => f.GetClaimFieldsByModule(value)).Returns(new List <ClaimField>()); ClaimFieldLogic target = new ClaimFieldLogic(mockClaimFieldLogic.Object); List <ClaimField> actual = target.GetClaimFieldsByModule(value); const int result = 0; Assert.AreEqual(result, actual.Count); }