public async Task GetModsetDataByName_ModsetNotExists_ReturnsNotFound() { var modset = _fixture.Create <WebModset>(); var apiClient = new ApiModsetClient(_httpClient); var result = await apiClient.GetModsetDataByName(modset.Name); result.ShouldBeFailure(ModsetsTestController.ModsetWithNameDoesNotExistMessage); }
public async Task GetModsetDataByName_ModsetWithNameExists_ReturnsModset() { var modset = _modsetsStorage.Modsets.First(); var apiClient = new ApiModsetClient(_httpClient); var result = await apiClient.GetModsetDataByName(modset.Name); result.ShouldBeSuccess(modset); }