public void Test_Mapper_EntityToDto() { var entity = new MyEntity() { Name = nameof(MyEntity), Status = StatusType.Enable, IsDeleted = false }; var output = entity.MapTo <GetMyEntityOutput>(); output.ShouldNotBeNull(); output.Id.ShouldBe(entity.Id); output.Name.ShouldBe(entity.Name); output.Status.ShouldBe(entity.Status); output.IsDeleted.ShouldBe(entity.IsDeleted); output.CreationTime.ShouldBe(entity.CreationTime); }