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

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

            // Setup
            UsingDbContext <LegacyDbContext>(context => context.Specialties.Add(_specialtyPoco));
        }
Beispiel #2
0
        public void MapTo_SpecialtyPoco_To_SpecialtyDto()
        {
            var poco = new SpecialtyPoco
            {
                Id          = 1,
                Description = "Cirurgia Geral"
            };

            var mappDto = poco.MapTo <SpecialtyDto>();

            Assert.NotNull(mappDto);
            Assert.Equal(mappDto.Id, poco.Id);
            Assert.Equal(mappDto.Description, poco.Description);
        }