public async void ChartServiceTests_USD_Model_Should_Be_Returned() { //Arange ICurrencyRepository repository = CreateICurrencyRepositoryMoq(); ChartService chartService = CreateChartService(repository); Currency testedCurrency = await repository.GetCurrency(_secondCurrencyName); ChartModel expectedModel = new ChartModel(testedCurrency.Name, testedCurrency.ListOfRecords); bool testResult = false; //Act ChartModel resultModel = await chartService.CreateChartModel(_secondCurrencyName); if (resultModel.CurrencyCode.Equals(_secondCurrencyName) && resultModel.CurrencyRecords.SequenceEqual(expectedModel.CurrencyRecords)) { testResult = true; } //Asert Assert.True(testResult); }