コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }