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;
 }