public void Map_ProductOption_To_ProductOptionViewModel_Should_Work(ProductOption data) { var mapper = new MapperFixture().Mapper; var result = mapper.Map <ProductOptionResponseDto>(data); result.Should().NotBeNull(); result.Should().BeEquivalentTo(data); }
public PostsController_GetById(MapperFixture mapperFixture) { _logicDtoFaker = new LogicDtoFaker(); _mediatorMock = new Mock <IMediator>(); _controller = new PostsController(_mediatorMock.Object, mapperFixture.Mapper); }
public void Map_ProductOptionCreateRequest_To_ProductOption_Should_Work(ProductOptionCreateRequestDto data) { var mapper = new MapperFixture().Mapper; var result = mapper.Map <ProductOption>(data); result.Should().NotBeNull(); Guid.TryParse(result.Id.ToString(), out _).Should().BeTrue(); }
public void Map_ProductUpdateRequest_To_ProductOption_Should_Work(ProductOptionUpdateRequestDto data) { var mapper = new MapperFixture().Mapper; var result = mapper.Map <ProductOption>(data); result.Should().NotBeNull(); result.Id.Should().Be(data.Id); }
public UserServiceTests(UnitOfWorkFixture unitOfWorkFixture, MapperFixture mapperFixture) { _fixture = unitOfWorkFixture; _mapperFixture = mapperFixture; }
public UsuariosControllerTest(MapperFixture mapperFixture) { _mapperFixture = mapperFixture; }
public ClienteControllerTest(MapperFixture mapperFixture) { _mapperFixture = mapperFixture; }
public VeiculosControllerTest(MapperFixture mapperFixture) { _mapperFixture = mapperFixture; }
public ClienteControllerTest(MapperFixture mapperFixture) { _mapperFixture = mapperFixture; _clienteRepository = new ClienteRepositoryMock(); }
public AutoMapper(MapperFixture mapperFixture) { _mapperFixture = mapperFixture; }