/// <summary> /// Gets Json from Resources and Transforms it into the Output format /// </summary> /// <returns>string</returns> public string GetLearner() { LearnerDTO learnerDTO = JsonFactory.LoadJson(); LearnerModel learnerModel = mappers.LearnerDTOtoLearnerModel(learnerDTO); OutputModel outputModel = mappers.LearnerModeltoOutputModel(learnerModel); OutputDTO outputDTO = mappers.OutputModeltoOutputDTO(outputModel); return(JsonFactory.JsonSerialize(outputDTO)); }
public void LoadJson_ShouldLoadJsonFromFile() { //Arrange //Act LearnerDTO learners = JsonFactory.LoadJson(); //Assert Assert.NotNull(learners); }