Exemplo n.º 1
0
 public override EntityId GetEntityId(object instance)
 {
     return(instance switch
     {
         (TenantId t, PlayerId p) => GetIdForPlayer(t, p),
         Player p => GetIdForPlayer(p.Tenant, p.Id),
         PlayerDto dto => GetIdForPlayer(dto.Tenant, dto.Id),
         TestPlayerDto test => GetIdForPlayer(base.CurrentTenant, test.Id),
         PlayerCreated pce => GetIdForPlayer(pce.TenantId, pce.PlayerId),
         PlayerNameCorrected pnce => GetIdForPlayer(pnce.TenantId, pnce.PlayerId),
         CorrectName.Request cnr => GetIdForPlayer(base.CurrentTenant, cnr.PlayerId),
         _ => null
     });
Exemplo n.º 2
0
 public void GivenIHaveCorrectNameRequest(Table table)
 {
     _request = table.CreateInstance <CorrectName.Request>();
 }
 public void GivenIHaveCorrectNameRequest(Table table)
 {
     _request = GetPlayer(table);
 }