public void SourceType_Get_All()
        {
            //Arrange
            sourceTypeRepository.Setup(x => x.GetAll()).Returns(lstSources);

            //Act
            List <SourceTypeEntitiy> results = sourceTypeService.GetSourceTypes() as List <SourceTypeEntitiy>;

            //Assert
            Assert.IsNotNull(results);
            Assert.AreEqual(3, results.Count);
        }
Esempio n. 2
0
        public JsonResult GetSourceTypes()
        {
            var sources = sourceTypeService.GetSourceTypes();

            return(Json(sources));
        }