Exemplo n.º 1
0
        public void GetFlightAsyncTest()
        {
            base.ClearAll();

            var mockHttpService = new HttpService();

            Ioc.RegisterSingleton <IHttpService>(mockHttpService);

            var mockJsonConverter = new JsonConverter();

            Ioc.RegisterSingleton <IJsonConverter>(mockJsonConverter);

            var service = new FlightsService(mockHttpService, mockJsonConverter);

            NUnit.Framework.Assert.IsNotNull(service.GetFlightAsync("2017-01-19", "DME", "MSQ"));
        }