示例#1
0
        public SpecialtyAppServiceTests()
        {
            _specialtyAppService = Resolve <ISpecialtyAppService>();

            _specialtyPoco = new SpecialtyPoco
            {
                Id          = 1,
                Description = "Anestesiologia"
            };

            // Setup
            UsingDbContext <LegacyDbContext>(context => context.Specialties.Add(_specialtyPoco));
        }
示例#2
0
 public SpecialtyController(ISpecialtyAppService specialtyAppService)
 {
     _specialtyAppService = specialtyAppService;
 }