public TasksFixture()
        {
            LightUnitTest.PrepareUnitTestMode("runsettings", WorkBench.EnvironmentName);
            var fullAccessToken = LightUnitTest.GetAuthorization("BackofficeAdmin");

            api = new ApiWrapper("TASKS", fullAccessToken);
            api.Get("reseed/Unit");
        }
        /// <summary>
        /// Fetches all the missions performed
        /// </summary>
        /// <returns></returns>
        public async Task <Tuple <IEnumerable <MissionDTO>, string> > All()
        {
            if (!Helper.IsInternetAvailable())
            {
                return(null);
            }

            var result = await ApiWrapper <IEnumerable <MissionDTO> > .Get(Api.Missions.All);

            return(result);
        }
        /// <summary>
        /// Fetches one mission from the server
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <Tuple <MissionDTO, string> > Get(int id)
        {
            if (!Helper.IsInternetAvailable())
            {
                return(null);
            }

            var result = await ApiWrapper <MissionDTO> .Get(Api.Missions.Get.Replace("{id}", id.ToString()));

            return(result);
        }