// Path: src/main/java/com/ksa/myanmarlottery/repository/ScheduleRepository.java
// public interface ScheduleRepository {
//     List<ScheduleItem> findAll();
//     ScheduleItem insertOrUpdateItem(ScheduleItem item);
//     ScheduleItem findItemByID(String senderID);
//     void deleteItem(String id);
// }
// 
// Path: src/main/java/com/ksa/myanmarlottery/service/ResultService.java
// public interface ResultService {
//     Result insert(Result result);
//     public void deleteByType(int type);
//     public Result findResultByType(int type);
//     /**
//      * find only latest result information WITHOUT prize list.
//      * @param type
//      * @return 
//      */
//     public Result findLatestResultSummary(int type);    
//     
//     List<GetPrizeDTO> findPrizeByResultType(int type, String... codeNo);
//     
//     /**
//      * 
//      * @param startCode
//      * @param endCode
//      * @param point
//      * @param type
//      * @return 
//      */
//     public List<GetPrizeDTO> findPrizesByCode(String startCode, String endCode, String point, int type);
//     
//     /**
//      * 
//      * @param code
//      * @param startPoint
//      * @param endPoint
//      * @param type
//      * @return 
//      */
//     public List<GetPrizeDTO> findPrizesByPoints(String code, String startPoint, String endPoint, int type);
// }


import com.ksa.myanmarlottery.repository.ScheduleRepository;
import com.ksa.myanmarlottery.service.ResultService;
import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ksa.myanmarlottery.service;


/**
 *
 * @author Kyawswa
 */
@Profile("test")
@Configuration
public class ScheduleConfigruation {
    @Bean
    @Primary
// Path: src/main/java/com/ksa/myanmarlottery/repository/ScheduleRepository.java
// public interface ScheduleRepository {
//     List<ScheduleItem> findAll();
//     ScheduleItem insertOrUpdateItem(ScheduleItem item);
//     ScheduleItem findItemByID(String senderID);
//     void deleteItem(String id);
// }
// 
// Path: src/main/java/com/ksa/myanmarlottery/service/ResultService.java
// public interface ResultService {
//     Result insert(Result result);
//     public void deleteByType(int type);
//     public Result findResultByType(int type);
//     /**
//      * find only latest result information WITHOUT prize list.
//      * @param type
//      * @return 
//      */
//     public Result findLatestResultSummary(int type);    
//     
//     List<GetPrizeDTO> findPrizeByResultType(int type, String... codeNo);
//     
//     /**
//      * 
//      * @param startCode
//      * @param endCode
//      * @param point
//      * @param type
//      * @return 
//      */
//     public List<GetPrizeDTO> findPrizesByCode(String startCode, String endCode, String point, int type);
//     
//     /**
//      * 
//      * @param code
//      * @param startPoint
//      * @param endPoint
//      * @param type
//      * @return 
//      */
//     public List<GetPrizeDTO> findPrizesByPoints(String code, String startPoint, String endPoint, int type);
// }


// Path: src/test/java/com/ksa/myanmarlottery/service/ScheduleConfigruation.java
import com.ksa.myanmarlottery.repository.ScheduleRepository;
import com.ksa.myanmarlottery.service.ResultService;
import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ksa.myanmarlottery.service;


/**
 *
 * @author Kyawswa
 */
@Profile("test")
@Configuration
public class ScheduleConfigruation {
    @Bean
    @Primary
    public ResultService resultService() {