Exemplo n.º 1
0
 public void AutoMapperForDeclarationTeachingTaskView()
 {
     var adapter = new Infrastructure.TypeAdapter.AutoMapperTypeAdapter();
     var uow = ServiceLocator.Current.GetInstance<IRepositoryContext>();
     var repo = new Repositories.DeclarationRepository(uow);
     var declaration = repo.GetAll().First();
     var view = adapter.Adapt<DeclarationForTeachingTaskView>(declaration);
     Assert.IsNotNull(view.ProfessionalClassName);
 }
Exemplo n.º 2
0
        public void AutoMapperForDeclarationTeachingTaskView()
        {
            var adapter     = new Infrastructure.TypeAdapter.AutoMapperTypeAdapter();
            var uow         = ServiceLocator.Current.GetInstance <IRepositoryContext>();
            var repo        = new Repositories.DeclarationRepository(uow);
            var declaration = repo.GetAll().First();
            var view        = adapter.Adapt <DeclarationForTeachingTaskView>(declaration);

            Assert.IsNotNull(view.ProfessionalClassName);
        }