public static async Task <ConstantExportJson> GetConstantExportJsonAsync(AtlasAcademyClient atlasAcademyClient) { return(new ConstantExportJson { AttributeRelation = new AttributeRelation(await atlasAcademyClient.GetAttributeRelationInfo()), ClassAttackRate = new ClassAttackRate(await atlasAcademyClient.GetClassAttackRateInfo()), ClassRelation = new ClassRelation(await atlasAcademyClient.GetClassRelationInfo()), ConstantRate = new ConstantRate(await atlasAcademyClient.GetConstantGameInfo()), GrailCostNiceJson = await atlasAcademyClient.GetGrailCostInfo(), ListEquipBasicJson = await atlasAcademyClient.GetListBasicEquipInfo(), ListServantBasicJson = await atlasAcademyClient.GetListBasicServantInfo(), TraitEnumInfo = await atlasAcademyClient.GetTraitEnumInfo(), }); }
public async Task SetMysticCode() { _wireMockFixture.CheckIfMockServerInUse(); _wireMockUtility.AddStubs(_wireMockFixture); using (var scope = _container.BeginLifetimeScope()) { AtlasAcademyClient aaClient = scope.Resolve <AtlasAcademyClient>(); MysticCode mysticCode = new MysticCode { MysticCodeLevel = 4, MysticCodeInfo = await aaClient.GetMysticCodeInfo(WireMockUtility.ARTIC_ID) }; mysticCode.MysticCodeInfo.Id.Should().Be(110); } }