using AutobusApi.Application.RouteSearch; using AutoMapper; namespace AutobusApi.UnitTests.Common.Mappings; public class MappingTests : IClassFixture { private readonly IConfigurationProvider _configuration; private readonly IMapper _mapper; public MappingTests(MappingTestsFixture fixure) { _configuration = fixure.ConfigurationProvider; _mapper = fixure.Mapper; } [Fact] public void ShouldHaveValidConfiguraion() { _configuration.AssertConfigurationIsValid(); } [Theory] // [InlineData(typeof(), typeof())] public void ShouldSupportMappingFromSourceDoDestination(Type source, Type destination) { var instance = Activator.CreateInstance(source); _mapper.Map(instance, source, destination); } }