Exemple #1
0
        public List <RiskVM> GetProjectRisks(int projectId)
        {
            var model       = new List <RiskVM>();
            var transformer = new RiskTransformer();

            using (var db = new ManagementToolEntities())
            {
                var resp = new RiskRepository(db);

                IEnumerable <DBModels.Risk> risks = resp.Get(r => r.ProjectId == projectId);
                model = transformer.Transform(risks);
            }

            return(model);
        }
 public void Get_DataProviderGetWasCalled()
 {
     RiskRepository.Get(It.IsAny <string>());
     RiskDataProviderMock.Verify(mock => mock.Get(It.IsAny <string>()), Times.Once);
 }