public ActionResult Create(long id)
        {
            VMSertifikasi dt = new VMSertifikasi();

            ViewBag.ListYear  = GeneralRepo.ListYear();
            ViewBag.ListMonth = GeneralRepo.ListMonth();
            dt.biodata_id     = id;
            dt.id_biodata     = id;
            return(PartialView("_Create", dt));
        }
Exemple #2
0
 public HandleMessageWallPostLikesRepostsComments(
     UnitsProvider unitsProvider,
     ILogger log,
     IBus bus,
     GeneralRepo repo)
 {
     _unitsProvider = unitsProvider;
     _log           = log;
     _bus           = bus;
     _repo          = repo;
 }
 public HandleMessageUserGet(
     UnitsProvider unitsProvider,
     ILogger log,
     IBus bus,
     GeneralRepo repo)
 {
     _unitsProvider = unitsProvider;
     _log           = log;
     _bus           = bus;
     _repo          = repo;
 }
Exemple #4
0
        public void GetCharacters()
        {
            var apiKeyInfo = new ApiKeyInfo()
            {
                KeyId = 2979031,
                VCode = "jb25Tppy5VgfEE3SR8ghVSNz33TfLNWmE2o3Jhcn8I2hJM34bm4buizVS80CAFwf"
            };

            var info = new GeneralRepo().GetCharacters(apiKeyInfo);

            Assert.IsNotNull(info.result);
        }
Exemple #5
0
        public void TestGetCategories()
        {
            // arrange
            _dbContext      = _dbContext ?? Configurations.GetDbContext();
            _mapperProvider = _mapperProvider ?? Configurations.GetMapperProvider();

            // act
            var results = new GeneralRepo <Category>(_dbContext, _mapperProvider, _mapper).GetAll().ToList();

            // assert
            Assert.IsType <List <Category> >(results);

            Assert.True(results.Count > 0);

            Assert.All(results, category =>
            {
                Assert.True(category.CategoryId > 0);
                Assert.False(string.IsNullOrEmpty(category.CategoryName));
            });
        }