public static void Setup(TestContext context)
        {
            Mock <MotoGPContext> _motoGpContext = new MotoGpContextMock()._mockMotoGpContext;

            _motoGpService = new MotoGpService(_motoGpContext.Object);

            Mock <MotoGPContext> _motoGpContextAsync = new MotoGpContextAsyncMock()._mockMotoGpContextAsync;

            _motoGpServiceDbContextAsync = new MotoGpService(_motoGpContextAsync.Object);
        }
示例#2
0
 public MotoGpController(IMotoGpService motoGpService)
 {
     _motoGpService = motoGpService;
 }