/// <summary> /// Initializes a new instance of the <see cref="ModelingReportController"/> class. /// </summary> public ContractPayerMapReportController() { int facilityId = Convert.ToInt32(System.Web.HttpContext.Current.Request.Headers[Constants.BubbleDataSource]); string bubbleDataSource = GetFacilityConnection(facilityId); _payerMappingReportLogic = new ContractPayerMapReportLogic(bubbleDataSource); }
public void ContractPayerMapReportLogicConstructorUnitTest2() { var mockContractPayerMapReportRepository = new Mock <IContractPayerMapReportRepository>(); ContractPayerMapReportLogic target = new ContractPayerMapReportLogic(mockContractPayerMapReportRepository.Object); Assert.IsInstanceOfType(target, typeof(ContractPayerMapReportLogic)); }
public void GetIfNotNull() { Mock <IContractPayerMapReportRepository> mockContractPayerMapReportRepository = new Mock <IContractPayerMapReportRepository>(); var result = new ContractPayerMapReport(); mockContractPayerMapReportRepository.Setup(f => f.Get(It.IsAny <ContractPayerMapReport>())).Returns(result); ContractPayerMapReportLogic target = new ContractPayerMapReportLogic(mockContractPayerMapReportRepository.Object); ContractPayerMapReport actual = target.Get(result); Assert.AreEqual(result, actual); }
public void ContractPayerMapReportLogicConstructorUnitTest1() { ContractPayerMapReportLogic target = new ContractPayerMapReportLogic(Constants.ConnectionString); Assert.IsInstanceOfType(target, typeof(ContractPayerMapReportLogic)); }